dotCover 2019.3 New Features

In the latest version in 2019, dotCover gained some new features:

  • Unity in support of testing JetBrains Rider.
  • Microsoft Fakes supported versions of Visual Studio 2017 or later.
  • It may be generated by the nested namespace Rider and Visual Studio and the console tool dotCover report coverage group.

Unity support

Add support for Unity is the main focus of the test version 2019.3. The following are the key elements:

  • Unity project coverage analysis support is available only in JetBrains Rider.
  • To run coverage analysis, your Unity project must have a Rider Editor and Test Framework software package. Version:

       Note: To be able to run the test, make sure your project has a Test Framework version 1.1.1 or later.

  • To run coverage analysis, you must start the Unity Editor in a special mode to enable coverage of support.
  • Support editing mode test only.

Workflow is as follows:

1. Open your Unity solution in the Rider.

2. On the Unity toolbar, select "  Use Coverage Start Unity" :

    This runs the Unity editor enabled coverage in support of (your Unity project will open automatically).

3. In Rider, open "  unit testing" window, select the desired test, and then click the "  covering selected cells Test" button.

    This test will be run enabled coverage analysis. When ready, you will be in the " unit test coverage" to get the results window.

Microsoft Fakes support

If you have to use Microsoft Fakes test, the dotCover will calculate its coverage.

Please note, Visual Studio (version 2017 or later) in dotCover not only support Microsoft Fakes, and dotCover command-line tool also supports Microsoft Fakes. If you use the latter, you should use vstest.console.exe (2017 or later from Visual Studio) to run the test.

By name space will cover the group results

Users can view coverage results for a particular namespace, that is to see the coverage of specific product features. It works as follows:

Details: https://blog.jetbrains.com/dotnet/2020/01/02/whats-new-dotcover-2019-3/

Guess you like

Origin www.oschina.net/news/112541/dotcover-2019-3-updated