dotCover Help

.NET Process

In Visual Studio:
ReSharper | Cover | 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 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

  1. Do one of the following:
    • On the Visual Studio main menu, choose ReSharper | Cover | Cover Application or press Ctrl+Alt+K,K.
    • On the main menu of dotCover standalone application, choose File | Cover Application or press Ctrl+Alt+K,K
  2. In the Coverage Configuration dialog box that appears, choose .NET Process.
    You must have Administrator permissions to start a manual test session on IIS server.
  3. Click Filter Processes to specify include (with +) and/or exclude (with -) masks for process names.
  4. Optionally, tick the Advanced check box to configure additional settings:
    • 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.
  5. Click Run. dotCover will open the Coverage Controller dialog box and then wait for the first .NET process that starts.
  6. Start your .NET process.
    As soon as dotCover detects the process that matches the specified filter, The controls in the Coverage Controller dialog box become enabled and you can start test execution.
  7. 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 box. When the test session is started, you can record code coverage in the test session.

See Also

Last modified: 20 October 2015