Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating test run configurations in VS 2008

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?

like image 672
Jeff Avatar asked Oct 13 '08 16:10

Jeff


1 Answers

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.

like image 58
Craig Stuntz Avatar answered Nov 08 '22 02:11

Craig Stuntz