dotCover 2024.1 Help

dotCover options: Tools | Unit Testing | Test Frameworks |

On this page of dotCover options, you can adjust unit testing settings related to tests.

Test discovery

To list tests from your solution in the Unit Test Explorer window, dotCover needs to discover unit tests.

The discovery of tests in specific project happens only after the project is built. You can choose between two options that allow you to prefer either speed or accuracy for discovering unit tests after the build.

  • Metadata (default)

    In this mode, dotCover analyzes the build artifact without launching the test runner.

    As tests are defined using attributes, dotCover can quickly scan the metadata of managed artifacts to find most tests in the project. However, it may fail to find tests that require running some special hooks of to define their parameters.

    This is the fastest way of discovering tests.

  • Test runner

    In this mode, dotCover launches runner in the discovery mode on the build artifact, and then uses the results from the runner.

    Using runner can take considerably longer to analyze the project, but the list of discovered tests will be complete in most cases.

After you run all tests from a specific project, dotCover will update the list of tests in this project independently of the selected discovery mode because letting the runner to execute all tests is the most accurate way of test discovery. config file

dotCover will try to find and load your configuration file in any of standard locations. If your configuration file is in a custom location, select Use specific configuration file and specify the path to this file. For more information about the format of the configuration files, refer to Documentation: Configuration Files.

Last modified: 09 April 2024