7

I am working with an n-tiered architecture in Visual Studio 2008 (Developer Edition), and I have run into an issue.

We are running unit tests on every method of our services layer, and I am attempting to see the code coverage results, to ensure I'm hitting all the main paths through my methods.

When I attempt to view the results, I am informed that the test run did not have code coverage enabled. I tried editing the test run configuration through test -> edit test run configurations, only to discover that there were none found.

I have yet to discover how to create a test run configuration so that I can enable code coverage results.

How do I create the configuration?

Jeff
  • 2,835
  • 3
  • 41
  • 69

1 Answers1

11

Right-click the solution, choose Add, New item, choose Test run configuration in the resulting dialog. The only tricky part is that you don't get this choice unless you right-click the solution.

Craig Stuntz
  • 125,891
  • 12
  • 252
  • 273
  • 1
    The only trick is...you need to know the trick. Thanks! I'd been clicking on the test project... – Jeff Oct 13 '08 at 17:31