In Visual Studio:
dotCover | Cover Application
In dotCover standalone application:
File | Cover Application
If you need to analyze coverage of a .NET process that is started in a custom way, you can start the dotCover Controller first, and then start your .NET process. dotCover will then attach to the process automatically and record coverage analysis while you test the process.
The application or process you choose must have PDB information. Otherwise, dotCover will not be able to record the coverage information. For more information, see where to search for PDB information
Do one of the following:
- On the Visual Studio main menu, choose dotCover | Cover Application or press Ctrl+Alt+K,K.
- On the main menu of dotCover standalone application, choose File | Cover Application or press Ctrl+C
Cover Application dialog box that appears, choose
.NET Process and click
You must have Administrator permissions to start a manual test session on IIS server.
- The Coverage Configuration dialog box opens.
If you need to analyze coverage of a Silverlight application, tick the
Cover Silverlight applications check box.
The only place where dotCover can find PDB information of your Silverlight application is an explicitly specified path.
Click Edit Symbol Search Policy button and specify the path in the Search path field. If the button is hidden, click the arrow in the bottom of the Coverage options section to display it. For more information, see PDB and symbol search policy.
To configure additional coverage options, click the arrow in the bottom of the
Coverage options section.
The Edit Symbol Search Policy button that appears, allows specifying where to search for PDB information.
- Click Run. dotCover will open the dotCover Controller dialog box and then wait for the first .NET process that starts.
- Start your .NET process. The controls in the dotCover Controller dialog box will be enabled.
- If the Start profiling immediately check box was selected, the test session is started immediately. Otherwise, dotCover waits until you click Start Profiling in the dotCover Controller dialog box. When the test session is started, you can record code coverage in the test session.