On the Test menu, select Analyze Code Coverage for All Tests. The code coverage feature is available only in Visual Studio Enterprise edition. The source editor highlights the tested code. The results table shows the percentage of the code executed in each assembly, class, and procedure. To effectively guard against bugs, your tests should exercise or 'cover' a large proportion of your code.Ĭode coverage analysis is possible for both managed (CLI) and unmanaged (native) code.Ĭode coverage option is available under the Test menu when you run test methods using Test Explorer. To determine what proportion of your project's code is being tested by coded tests such as unit tests, you can use the code coverage feature of Visual Studio. Use code coverage to determine how much code is being tested
0 Comments
Leave a Reply. |