If you are using VS 2012, by default Code coverage results are available for Test assembly also. There is no direct way to disable this behavior, either you need to use the ExcludeFromCodeCoverage attribute or you need to use the runsettings file. The ExcludeFromCodeCoverage is pretty straight forward; you need to decorate all the unit [...]
Posts Tagged: Code Coverage
Getting Code coverage using Open Cover and NUnit
In the last post I blogged about how to get code coverage using MSTest and Part cover. In this post I am blogging about measuring code coverage with Open cover. Today I found another alternative to measure code coverage. Its called Open cover. You can download Open Cover from here. Compared to Part cover, Open [...]
How measure get code coverage by PartCover with MSTest
If you are using VS 2010 Premium or Ultimate, you can get the code coverage from VS itself (You can find more posts related to code coverage here.). But if you are using Professional or less, you won’t get this code coverage feature. From last few months I am using VS Pro edition, and some [...]
How to enable code coverage in Visual Studio 2010
If you are writing frameworks and creating unit tests for the framework, you may require to find the code coverage of your code. And if you were using VS 2008 and moved to VS 2010, its slightly different. Open the local.testsettings which you can access from Test -> Edit Test Settings -> Local (local.testsettings) Select [...]