In Visual Studio:
dotCover | Cover Application
In dotCover standalone application:
File | Cover Application
With dotCover, you can run manual test sessions for Windows services.
Before you start analyzing coverage for a Windows service, make sure that your service is installed in the system. For more information on installing and uninstalling Windows services, see How to: Install and Uninstall Services
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
Windows Service and click
You must have Administrator permissions to start a manual test session for a Windows service.
- The Coverage Configuration dialog box opens.
- In the Service drop-down list, choose a service that you want to run.
Optionally, click the arrow in the bottom of the
Application options area
to configure additional application settings:
- If you need to pass any command-line arguments, type them in the Arguments field or click the ellipsis button and choose a file to append to the argument string.
- If you want dotCover to run and analyze coverage of all dependent services.child processes, tick the Start Dependent Services check-box.
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 start or restart the selected service.
- 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.
- Starting Manual Test Session for External Applications
- Coverage Analysis of Manual Test Sessions
- Starting Manual Test Session for Startup Project
- Recording Coverage of Manual Test Session