In dotCover standalone application:
With dotCover, you can run coverage analysis 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
To start a coverage run for a Windows service
Do one of the following:
In the Coverage Configuration dialog that appears, choose Windows Service.
Note that you must have Administrator permissions to start a coverage run for a Windows service.
In the Service drop-down list, choose a service that you want to run.
- Optionally, select the Advanced check box to configure additional settings:
If you want dotCover to run and analyze coverage of all dependent services.child processes, select the Start Dependent Services check box.
Click Edit Symbol Search Policy to specify where to search for PDB information.
Click Edit Filters to view existing and add new coverage filters. Note that the filters you add with this button are only applied to the current session.
- Click Run. dotCover will open the Coverage Controller dialog and then
start or restart the selected service.
If the Collect profiling data from start check box was selected, the coverage run starts immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller dialog. When the coverage run is started, you can record code coverage.