CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Thursday, June 25, 2009

Code Coverage is not enabled for this test run

Here are the steps to follow if you have problem in checking the "Code Coverage" Results.

Go to the test project in your application.

Open Test-> Edit Test Run Configuration

1

Go to Code Coverage, and select the dll that have to run for code coverage

2.

This settings should solve the problem.

Code Coverage results are not displayed in “Debug” mode.

Change it to “Release” mode and run the test project. The Code Coverage results should be displayed.

Post a Comment