dotCover 2023.3 Help

Start Coverage Analysis for Startup Project

dotCover lets you run the startup project of your Visual Studio solution under its control. All executable .NET project types are supported. With a single keystroke, dotCover will rebuild the solution and start the coverage run.

Run the startup project under dotCover Control

  1. Press Control+Alt+K, P or choose ReSharper | Cover | Cover Startup Project from the main menu . Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.

  2. dotCover will open the Coverage Controller dialog and then run the startup project of the current solution.

  3. When the target application or process is started, you can record code coverage of the test running application.

dotCover will run the startup project using the current build configuration, in the same way as when you press F5 in Visual Studio. Before running coverage analysis, make sure that the PDB information exists for all target assemblies. The safest choice would be to set the Debug as the build configuration.

If you need to run the project with custom configuration without changing the debug (or release) configuration, press Control+Alt+K, K or choose ReSharper | Cover | Cover Application… from the main menu For more information, refer to Start Coverage Analysis for External Applications.

Last modified: 11 January 2024