Hi,
We recently upgraded for an old v2 version to v 3.9 for our console tool. Now we are getting failures every time we run the tests as some tests are not run. Is there some way we can determine which tests are not running and causing this issue and tell NCrunch to ignore the fact that those tests don't run? or can we tell the console tool to revert to the previous behaviour and return 0 as long as all the tests pass?
Cheers
Sam
Setup Problems
Tests returning error 5 after upgrade, can we suppress this?
Started by samholder on 5,617 views
Remco NCrunch Developer
#10827
24 Jul 2017 23:24 UTC
Hi Sam,
Normally, tests that aren't run should be shown in the HTML report generated by the console tool. It's possible that tests weren't run by the tool if the tool is using an engine mode or automatic execution filter that excludes the tests from the run, or if the tests are making use of RequiresCapabilityAttribute and the machine running them doesn't have the appropriate capabilities declared in its configuration.
The tool returns a separate return code for when tests were missing from the run, because in many situations this could be considered an error case that people would want to consider (for example, if the tests were dependent on there being a connected grid node that happened to be offline). There is no feature in the software itself that can tell it to 'ignore' such a state and return 0, but you could easily wrap up the tool in a batch file that would check the return code and return 0 to your CI system if it didn't pass a simple condition.
Normally, tests that aren't run should be shown in the HTML report generated by the console tool. It's possible that tests weren't run by the tool if the tool is using an engine mode or automatic execution filter that excludes the tests from the run, or if the tests are making use of RequiresCapabilityAttribute and the machine running them doesn't have the appropriate capabilities declared in its configuration.
The tool returns a separate return code for when tests were missing from the run, because in many situations this could be considered an error case that people would want to consider (for example, if the tests were dependent on there being a connected grid node that happened to be offline). There is no feature in the software itself that can tell it to 'ignore' such a state and return 0, but you could easily wrap up the tool in a batch file that would check the return code and return 0 to your CI system if it didn't pass a simple condition.
Post a reply
Log in to reply.