Code Coverage on macOS and Linux in Rider 2019.1

Rider 2019.1 brings a lot of good news for macOS and Linux users: our profiling and code coverage tools are now supported (to varying degrees) on macOS and Linux. In this post, we’ll dive deeper into the code coverage updates in Rider.

What is currently supported?

Windows macOS Linux
.NET Framework + n/a n/a
.NET Core + (1.0 and later) + (2.0 and later) + (2.0 and later)
Mono Unity

In this release, you can analyze the coverage of your .NET Core unit tests. This works on all operating systems. Support for Mono and Mono Unity is still a work in progress and is planned for 2019.2. Note that as of EAP 04, the code-coverage console tool is not yet available.

How to use code coverage in Rider?

As usual: run coverage analysis either from the Unit Tests window or right from the editor.

Unit tests coverage analysis on macOS

Continuous testing works as well:

Continuous testing on macOS

Note that if you try to run coverage analysis for a Mono application, the Unit Tests window will ignore the tests and mark them as Not supported. The Unit Tests Coverage window will contain no coverage results.

No coverage results

One more note about our licensing model. Code coverage and profiling features are available for you if you have a ReSharper Ultimate + Rider subscription or an All Products Pack subscription. Or you can use any of the Rider EAP versions, which always include the full feature set.

Download the latest Rider EAP and try code coverage and other Rider features. As always, we would greatly appreciate your feedback!

This entry was posted in How-To's and tagged , , , , , . Bookmark the permalink.

5 Responses to Code Coverage on macOS and Linux in Rider 2019.1

  1. Michael says:

    I don’t get it–I have Rider on MacOS and need code coverage for my C# code. But this is saying I can only do that if I have Resharper, which isn’t available on MacOS. How am I supposed to have both?

    • Hi Michael,

      A ReSharper Ultimate + Rider subscription or an All Products Pack subscription will be needed. No need for the software itself, the subscription is important.

  2. Elvis says:

    will it be possible to run dotcover (installed from azure devops marketplace) on linux machines with azure devops?

    • Alexey Totin says:

      Hi Elvis,
      if we’re talking about the ‘Resharper DotCover analyse’ task available on Azure DevOps marketplace, then the answer is “we don’t know”. We have no relation to its development. What we can say for sure is that the dotCover console tool (used by this utility task) will get the support for Linux in the next releases (maybe even in 2019.2).

  3. Paul says:

    Are there plans to support the exporting of coverage reports on macOS and Linux?

Leave a Reply

Your email address will not be published. Required fields are marked *