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 ?
>
>
>
>
>
>
>
>

Reply via email to