dotCover Web Help

In Visual Studio:
dotCover | Cover Application
Ctrl+Alt+K,K

In dotCover standalone application:
File | Cover Application
Ctrl+C

With dotCover, you can run manual test sessions for standalone applications that have an executable file and PDB information.

Note

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

To start a manual test session for a standalone application
  1. 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
  2. In the Cover Application dialog box that appears, choose Standalone Application and click OK.
  3. The Coverage Configuration dialog box opens.
  4. In the Application field, specify the path to the application executable file.
  5. 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.
  6. Optionally, click the arrow in the bottom of the Application options area to configure additional application settings:
    • If you want to use a different working directory for your application, you can specify it in the Working Directory field.
    • If you want dotCover to analyze coverage of child processes, if any, tick the Cover child processes check-box.
  7. 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.
  8. Click Run. dotCover will open the dotCover Controller dialog box and then run the selected application.
  9. 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.