views:

503

answers:

2

Hello,

I am relatively new to unit testing and was attempting to add some code coverage to my unit tests. Yet i can't find the code coverage tab in Visual Studio 2008 in the localtestrun.testrunconfig, is there any missing Add-in or tool?

Thanks, DMS

+1  A: 

Go to the menu Test, select Edit test run configuration for your current test run and check enable code coverage. Then perform a run and then on the test run results you can choose to display code coverage.

Gerrie Schenck
I did as u said and the localtestrun.testrunconfig opened up again, the only tabs i can c are the General, Deployment, Hosts, Setups and Cleanup Scripts, and Test Timeouts. I can't see anything that references code coverage
DMS
Well there's supposed to be a Code Coverage tab between general and deployment...
Gerrie Schenck
That was my question in the first place, am i missing some sort of add-in or something as to why I cant see the code coverage tab?Thanks,
DMS
+1  A: 

As I understand "Code Coverage" is available only in "bigger" editions of Visual Studio 2008. In other words, this feature is NOT available in the "Visual Studio 2008 Professional Edition".

Which edition of Visual Studio 2008 are you using ?

MSDN Link

Subbu
yes i am using the Professional Edition which seems to be the problem, thanks for your help
DMS