Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.4.1

...

Info
iconfalse
title.NET Core Standalone Applications

dotTEST can collect coverage for .NET Core standalone applications (configuring additional dependencies with the dedicated environment variable or the dotnet.exe command line switch --additional-deps is not supported).

Info
iconfalse
title.NET Core Web Applications

You can leverage the capabilities of the the coverage.exe tool to collect coverage for .NET Core web applications by providing the entry point of the application under test and the path to dotnet.exe; see Configuring the Coverage Wizard for details.

Note: In typical workflows, dotTEST collects coverage for web applications deployed on IIS server (see Application Coverage for Standalone Applications).

Anchor
Configuring the Coverage Wizard
Configuring the Coverage Wizard
Configuring the Coverage Wizard

  1. Run the [INSTALL_DIR]\coverage.exe tool and specify the following information:
    - Full path to the application
    - Command line arguments
    - Working directory
    Image Modified

    Info
    iconfalse
    titleCollecting coverage for a .NET Core web application

    Complete the Full path to the application field with the path to dotnet.exe and the Command line arguments field with the entry point of the application. For example:

    Image Added

  2. Specify the .NET CLR version used by the application.
  3. Specify a directory where the scripts generated by the wizard will be saved.
  4. Specify if you want to collect coverage information with or without the Coverage Agent:
    - If you enable the Use Coverage Agent option, enable or disable the Collect coverage without admin privileges option (see Collecting Coverage without Admin Privileges),  then skip steps 5-7 and click Finish.
    - If you enable the Without Coverage Agent option (default), proceed to steps 5-7.

  5. Define the scope of coverage to import by providing -solution or -project switches that will be passed to the dotTEST executable so that it can locate sources. See Configuring the Test Scope for more information about the switches.
  6. Enable or disable the Remove old coverage data before each run option. This option is enabled by default.

    Info

    By default, dynamic coverage information that was collected during previous executions is deleted. Disabling this option will prevent removing the data from previous runs.

  7. Enable or disable the Run application immediately option to automatically launch the monitorCoverage.bat script ( if enabled, the application must be manually launched with the script generated by the wizard in the location specified in step 3).

...