Menu

#3 Reports for Failing Unit Tests

open
nobody
None
5
2004-01-06
2004-01-06
No

In my nant build, I run the unit tests, then generate the
report using nunit2report. When the unit test fails, the
report is not generated, since the build is terminated.
Setting failonerror="False", fixes the problem, but the
build continues (which is not what I want).

What I would like to do is the following:
- Compile
- Run unit tests
- Generate Report
- If unit tests failed, then terminate build (can be done
using "fail" task, but how can I check that the unit tests
failed????).

Discussion


Log in to post a comment.