Jump to content

Testing and Source Distributions


Recommended Posts

Hi

What is the standard practice for testing source distribution code:

Should I write tests cases for source code OR source distribution code OR both?

I can see issue with either choice:

Source only - you want to test source to pick up any errors before you make it into a source distribution but...

Distribution only - distribution may apply name changes and in case of an error with dependency code that meant the source was ok but the distribution isn't

Both - best coverage, but redundant tests case, changes mean updating code (tests) in two places (due to re-naming etc..)!

What do you guys do?

Cheers :beer:

JG

Link to comment

QUOTE (jgcode @ May 16 2009, 05:58 AM)

http://forums.jkisoft.com/index.php?showtopic=1104' rel='nofollow' target="_blank">[Cross posted to JKI]

Hi

What is the standard practice for testing source distribution code:

Should I write tests cases for source code OR source distribution code OR both?

I can see issue with either choice:

Source only - you want to test source to pick up any errors before you make it into a source distribution but...

Distribution only - distribution may apply name changes and in case of an error with dependency code that meant the source was ok but the distribution isn't

Both - best coverage, but redundant tests case, changes mean updating code (tests) in two places (due to re-naming etc..)!

What do you guys do?

Cheers :beer:

JG

Both.

The earlier in the development cycle a problem is found the easier it is to fix so unit testing at the very least.

But on the final application testing tells me if it works or not.

Ben

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.