O'Reilly logo

Software Testing using Visual Studio 2012 by Satheesh Kumar. N, Subashni. S

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code coverage unit test

The Code coverage feature in Visual Studio has been simplified and provides lots of information on coverage. It also provides different colors for coding the coverage and a detailed report. Basically, code coverage is used to determine the percentage of actual project code covered and tested as a part of unit testing. Covering a large proportion of code is always better. The Code coverage analysis can be applied for both managed and unmanaged code.

In the current and recent version of Visual Studio, the Code Coverage Results option is merged along with the Test Explorer window. The results table shows the percentage of the code that was run in each assembly, class, and method. The source code editor also shows which code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required