Reputation: 457
I have integrated continuous build process with Cruise Control. At the EOD, it generates a build report. If any NUnit test cases fail, then the build fails. We have written one specific test case and added it in a separate dll. We don't want our build to fail if any test case in that assembly fails. We are using MSBuild target, .proj files and cruise control, ccnet config file.
Upvotes: 1
Views: 553
Reputation: 26749
I would call NUnit two times: once for the tests you want to fail the build if the don't pass, then a second time to run the tests whose results you don't want to affect the build, e.g.,
<!-- Any failing tests in Assembly1.dll will cause the build to fail. -->
<Exec Command="nunit.exe Assembly1.dll" />
<!-- Any failing tests in Assembly2.dll won't fail the build because the ContinueOnError attribute is set to True. -->
<Exec Command="nunit.exe Assembly2.dll" ContinueOnError="True" />
Upvotes: 1