Due to the infrastructure I have, I'm running the NUnit through our host application kicked off by a batch file. At the end of the run, it will generate the NUnit Report Xml files in certain directory.
The setup I have in TeamCity Project is to (step 1) run the command line, (step 2) use the NUnit Report Watcher to pick up the output. This is the partial log to see it actually found and parsed the xml files.
NUnit report watcher[10:32:56]:
[NUnit report watcher] 2 reports found for paths:[10:32:56]:
[NUnit report watcher] D:/NUnitLog/*.xml
[10:32:56]: [NUnit report watcher] Successfully parsed
[10:32:56]: [Successfully parsed] 2 reports
Publishing internal artifacts[10:32:56]:
[Publishing internal artifacts] Sending build.finish.properties file[10:32:56]:
[Publishing artifacts] Paths to publish: [D:/NUnitLog/*.xml][10:32:56]:
[Publishing artifacts] Sending files[10:32:57]:
There are 9 failed tests in the NUnit result, but the build is stated that it is successful. Obviously after parsing the files, it didn't consider it is a failed test. What am I missing?