Is there anything in the log to denote a failure? You could use the log parser to fail if it finds test failures. But I agree with the guy below they should be marked unstable, which can also be done with the log parser plugin.
Will ________________________________ From: [email protected] [[email protected]] on behalf of Mark Waite [[email protected]] Sent: Thursday, September 06, 2012 12:50 PM To: [email protected] Subject: Re: MSTest Plugin doesn't fail the job on failing test. You might consider the comments in this thread before you mark a job as failed due to test failures: http://jenkins.361315.n4.nabble.com/plugin-A-build-with-failed-tests-should-be-marked-as-Unstable-or-Failure-td3585663.html If that guidance doesn't meet your needs and you decide that you still want to fail the build on test failures rather than mark the build "Unstable" on test failures, then I think the easiest way is to invoke mstest.exe directly (instead of using the MSTest plugin to launch it) and then have the MSTest batch file exit with a non zero exit code if any test fails. Mark Waite ________________________________ From: bearrito <[email protected]> To: [email protected] Sent: Thursday, September 6, 2012 10:04 AM Subject: MSTest Plugin doesn't fail the job on failing test. I would like the MSTest plugin to fail the job when a test fails. Is this feasible ?
