TeamCity does not detect unit test failures
Hi,
We recently upgraded to 8.1.2. We had two build configurations that were not able to detect unit test failures and showed results as green. Both of them have several failures but they don't show up in the Overview tab. They only showed up in the log. I have the following checked in Failure Conditions:
- the build process exit code is not zero
- at least one test failed
- an out-of-memory or crash is detected (Java only)
Not sure if it's related to the upgrade. We never had this situration before (or maybe we did, we just never check log files for successful builds).
Anyone has the same issue?
Thanks,
jason
Please sign in to leave a comment.
What framework do you use for testing and what build runner executes these tests?
Please also attach build log.
Hi Sergey,
Attached is the build log. We use NUnit as testing framework and we use NAnt to run the unit tests.
Thanks,
Jason
Attachment(s):
Build.zip
How do you call unit tests from your Nant script? Are you using <nunit2> task?
We use "exec" to run nunit console. I found out what the issus was. In the XML report processing, I had two parameters on the same line while they should have been on separate lines. TeamCity wasn't able to figure out the file name and just return success for the tests.