I have my unit tests (Nunit) in an inner class from my classes in order to test the private methods.  I wrap them in preprocessor directives which are defined in a configuration called UnitTest (oddly enough J ).  So, when I want to manually test my unit tests in Nunit’s GUI, I compile my application and open up the interface and check out the progress bar (all green I hope!).  OK, I’m happy there.  But now I’m getting into the automatic build testing arena with Nant I’d like to know if my previous approach is bogus. 

 

What I’d like to do is make a build and run the unit tests (as a build verification test).  Now, should I only build the UnitTest configuration I’ve defined and is that a valid approach?  Or should I run the UnitTest configuration, run the unit tests and if they all pass, then run my debug or release configuration (depending on my needs at the time)?

 

I’m confused here and I’d like to see what the rest of you do here?

 

Brian M. Beaudet

Director, Research & Development

EfficiencyLab, LLC

www.efficiencylab.com

 

Reply via email to