Reports for Failing Unit Tests
Brought to you by:
sellig
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????).