Troy Laurin wrote:

Marcin,

I don't have a link to good unit tests right now, but I do have some
suggestions that unit tests should follow...


Neither do I, but this happens to be an area in which I'm interested (specifically I'm interested both in automating Subversion and in unit testing), so I'd be glad to help work on these.

the tests is not found. This will mark the tests as "not run" instead
of "failed", and so won't cause the build to fail.


Personally, I think failed unit tests should never cause the build to fail unless they happen to be exploited as a gating mechanism for some other part of the build (e.g. an installation or deployment task). My definition of failure for a build is whether or not the explicit targets failed to meet their objectives. A build target fails if it didn't create all of the result files, a compile target fails if it couldn't create all of the .obj (or similar) files, a unit test target fails if it couldn't run the unit tests to produce a unit test result file (but not if the unit tests themselves produced failure), a clean target fails if anything is left around (but not if it couldn't clean because it was already clean), etc. I only mention this because I don't think NAnt's current mechanism for failure is up to this approach, so this may be food for thought for a future version. I'm thinking along the lines of explicit, detailed dependencies such as "target a depends upon target b completing with any status, target c depends upon target d completing successfully, and target e depends upon target f running and failing." I think this is post v1.0, but it's an interesting idea.

Gary



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to