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

4 comments
Comment actions Permalink

What framework do you use for testing and what build runner executes these tests?

Please also attach build log.

0
Comment actions Permalink

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
0
Comment actions Permalink

How do you call unit tests from your Nant script? Are you using <nunit2> task?

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.