In Visual Studio:
In dotCover standalone application:
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 the process is executed.
To analyze coverage of an arbitrary .NET process
Do one of the following:
In Visual Studio, press Control+Alt+K K or choosefrom the main menu
In dotCover standalone application, press Control+Alt+K K or choosein the menu.
Under Choose how you want to profile it, specify profiling options:
If you cannot guarantee that the analyzed process will be the first process started after you run the coverage analysis session, set up a process filter.
If required, specify other profiling options.
Under Run analysis, click Start. dotCover will open the Coverage Controller dialog and then run the selected application.
If the Collect coverage data from start checkbox 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.
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 the coverage run.