Code Coverage on macOS and Linux in Rider 2019.1

Posted on by Alexey Totin

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
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!

Comments below can no longer be edited.

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

  1. Michael says:

    May 30, 2019

    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?

    • Maarten Balliauw says:

      May 31, 2019

      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.

      • Hasan Kasamali says:

        February 21, 2020

        Hi Michael

        I am using Rider on Mac OS X

        Do I need to upgrade to ReSharper Ultimate + Rider Pack to get the code coverage icon in my Unit Test Explorer|

        Additionally what other tools from Resharper Ultimate are available in Ride (Mac OS X version)

        Many thanks in advance

        Regards
        Hasan

      • Vadim Sentyaev says:

        March 31, 2020

        Just a question for clarify. So if I Evaluete EAP software without a licence, I will be not able to check it?

        • Maarten Balliauw says:

          April 1, 2020

          In EAP you don’t need the license, so yes you can check it in an EAP.

  2. Elvis says:

    June 21, 2019

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

    • Alexey Totin says:

      June 21, 2019

      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:

    September 24, 2019

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

  4. Aaron says:

    January 16, 2020

    Can we try out dotCover for JetBrains Rider for Mac during a trial version? I can’t seem to make it work and I am just trying out the IDE to see if we will be switching development to Macs.

    • Alexey Totin says:

      January 24, 2020

      Hi Aaron,
      actually, dotCover is included in the trial Rider version. Maybe for some reason, the dotCover plugin is disabled. Could you please try the following:
      1. In Rider, open Preferences -> Plugins, find dotCover and make sure it is enabled.
      2. In Help -> Register, click Start trial next to the dotCover plugin.

  5. Jakob says:

    January 24, 2020

    Why is dotCover not included in Rider? Rider is supposed to be an IDE based on ReSharper, but to get dotCover I have to buy both Rider and the ReSharper pack? Why would I want to pay for ReSharper if I already have Rider? This pricing model makes no sense.

    • Alexey Totin says:

      January 24, 2020

      Hi Jakob,
      I totally agree that from the user perspective this licensing model looks weird. But I believe it’s more a problem of naming (which is subject to change in some near future). With the current name “ReSharper Ultimate + Rider”, it looks like you’re obliged to buy not only Rider but ReSharper as well. But I would prefer to think of RU+R as of some ultimate license that includes the entire set of .NET tools (and is only 30% more expensive).

Subscribe

Subscribe to .NET Tools updates