How to force visualization assembly assembly failed after unit tests

I am currently using Visual Studio 2012 and automating the execution of unit test after each build. However, what I would do is build failure if one unit test fails. The next steps are what I want to do.

  • Create a solution
  • When (1) succeeds, run all unit tests automatically
  • If in step 2, if the unit test fails, complete the build failure

I can do 1 and 2 (which is out of the box), but I don’t know how to step 3. This is for local assembly

+7
source share
1 answer

You can add Nunit or any other execution as the msbuild task to the project file. Here is an example:

http://sachabarbs.wordpress.com/2013/05/28/msbuild-and-nunit-a-simple-example/

0
source

All Articles