code-coveragendependopencover

Using OpenCover coverage data with NDepend?


My project uses OpenCover to analyse unit test coverage.

We've recently started using NDepend to improve the project. We're getting a lot out of it, but are stumped by one feature...

NDepend has functionality to incorporate data on code coverage into it's overall reports on technical debt. Unfortunately, it can only consume reports from the following tools:

NDepend can import coverage data from:

  • NCover™ 3.x and above coverage files
  • Visual Studio™ 2017, 2015, 2013, 2012 and 2010 XML coverage files
  • JetBrains DotCover™ 1.1 and above XML coverage files (with special NDepend formatting)

These are all commercial (i.e. paid-for) tools. As our project is open source, Open Cover (which itself is free as in beer as well as speech) suits our budget much better.

Is there any way to convert OpenCover reports into the format of one of the aforementioned tools? Or, is there some other way to squeeze data from OpenCover into NDepend?


Solution

  • NDepend v2019.1 now supports completely OpenCover coverage file format, more here https://www.ndepend.com/whatsnew#OpenCover and here https://www.ndepend.com/docs/code-coverage#OpenCoverFile