Search code examples
c#visual-studio-2008unit-testingcode-coverage

how can I get test coverage statistics for VS2008 C# project


I am using Visual Studio 2008 for a C# WinForms application and I am using the MSTest unit testing framework. It doesn't seem to have test coverage (I think it's in Team System?).

What is the easiest (cheapest?) way to get some test coverage statistics for my project here? Effectively just an indication of for each *.cs file the % test coverage my unit tests are providing, and for the cases when it is not 100% which lines aren't covered.

Thanks


Solution

  • Try these

    http://consultingblogs.emc.com/merrickchaffer/archive/2008/06/13/code-coverage-in-visual-studio-2008-using-test-driven-net-and-team-coverage.aspx

    and...

    Code Coverage Basics with Visual Studio Team System

    If you're using the Test System or Team Suite versions of Visual Studio, it should be straightforward.