How to force visual studio build fail after unit tests failed
c#, visual-studio-2012
Solution
You can add Nunit or whatever framework execution as msbuild task in your project file. Here is an example:
http://sachabarbs.wordpress.com/2013/05/28/msbuild-and-nunit-a-simple-example/
Problem
Currently, I am using Visual Studio 2012 and automate unit test execution after each build. However, what I would to do is fail the build if a single unit test fails . The following steps are what I want to do - Build the solution - When (1) succeed, run all unit tests automatically - When at step 2, if a unit test fails, make the build fail I am able to do 1 and 2 ( which are out of the box), but don't know how for step 3. This is for local build