JetBrains Rider 2024.1 Help

Analyze Coverage of Unity Tests

JetBrains Rider comes with bundled coverage analysis tool based on JetBrains dotCover. For more information about coverage analysis, refer to Coverage analysis of .NET code.

Installation and licensing

dotCover is provided as a single bundled plugin for JetBrains Rider, which is added and enabled automatically during the IDE installation. If you want to disable the plugin, open the Plugins page of settings  Ctrl+Alt+S, switch to the Installed tab and clear the checkbox next to dotCover.

dotCover is only available in Rider for the owners of dotUltimate or All Products Pack subscriptions.

Important notes

  • To run coverage analysis, your Unity project must have the 'Rider Editor' and 'Test Framework' packages. Version requirements:

    Unity

    Rider Editor

    Test Framework

    2018.3 – 2019.1

    any

    any

    2019.2 and later

    1.2.0 or later

    any

    Earlier than 1.2.0

    1.1.1 – 1.1.3

  • For coverage analysis, Unity Editor must be running.

How to analyze coverage of Unity tests

  1. Open your Unity solution in Rider.

  2. On the Unity toolbar, choose Start Unity.

  3. Work with Unity tests as you work with regular unit tests. For example, to run tests coverage analysis, open the Unit Tests window, select the desired tests, and click the Cover Selected Unit Tests button.

Last modified: 11 February 2024