Build/Test Issues

NCrunch console warnings in log output?

Started by GreenMoose on 5,369 views

In my NCrunch Console's TestResults folder I get something like
NUnit tests have been detected with the same name


Is it possible somehow to include these in log so I can fail the build if I spot NCrunch warnings?

Thanks.
This warning is included in the AllResults.html file along with more detailed information that includes the tests with duplicate names.

Or are you looking for a specific string to go into the NCrunch internal logs so you can pick this up with a Regex? I generally recommend steering away from tying into the internal NCrunch logs.. because they are .. well.. internal.
Yeah my intention was to fail the TeamCity build if it finds a ncrunch warning in logs (as it does for all other warnings).

I can parse the html output file but that's not pretty :)
GreenMoose wrote:Yeah my intention was to fail the TeamCity build if it finds a ncrunch warning in logs (as it does for all other warnings).

I can parse the html output file but that's not pretty :)


I can't make promises on this right now, but I'll take a look :)

Post a reply

Log in to reply.