Prerequisite - You should have Visual Studio 2010 Ultimate or Visual Studio 2010 Premium edition.
Step - 1: Create a .testconfig file using Add New Item menu.
Step - 2: Double click the .testconfig file to open Test Settings window.
Step - 3: Choose Data and Diagnostics tab and check you have following settings.
Role - Local Machine only
Code Coverage - Checked
Step - 4: Double click the Code Coverage to open Code Coverage Detail window. Add all your assemblies in this window that should come under code coverage.
Now if you run your tests, you should also see Code Coverage in Code Coverage tab (Test - Windows -> Code Coverage Result)
Sunday, September 4, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment