If you need to analyze coverage of a .NET process that is started in a custom way, you can start the Coverage 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.
To analyze coverage of an arbitrary .NET process
- Do one of the following:
Coverage Configuration Dialog that appears, choose
You must have Administrator permissions to start a manual test session on IIS server.
- Click Filter Processes to specify include (with +) and/or exclude (with -) masks for process names.
- Optionally, tick the Advanced check box to configure additional settings:
- Click Run. dotCover will open the Coverage Controller Dialog and then wait for the first .NET process that starts.
Start your .NET process.
As soon as dotCover detects the process that matches the specified filter, The controls in the Coverage Controller Dialog become enabled and you can start test execution.
- If the Start immediately check box was selected, the test session is started immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller Dialog. When the test session is started, you can record code coverage in the test session.