jgcode Posted May 17, 2009 Report Share Posted May 17, 2009 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 Quote Link to comment
Omar Mussa Posted May 22, 2009 Report Share Posted May 22, 2009 I added my response on the JKI Software Forums. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted May 22, 2009 Report Share Posted May 22, 2009 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.