问题
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:
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
回答2:
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.
来源:https://stackoverflow.com/questions/2064909/missing-code-coverage-tab-in-vs-localtestrun-testrunconfig