0

We are using OpenCover to examine our code coverage. We have big number of test and as a result OpenCover generates ~100 reports. ReportGenerator creates summary of Sequence Coverage, but we also need to know branch coverage summary of all tests, so it is possible to count Branch Coverage in any way?

Bor1ss
  • 39
  • 7

2 Answers2

0

The pre-release of OpenCover allows you to accumulate the results of one coverage run into the next.

Use -mergeoutput -results:coverage.xml to load a previous coverage.xml and save as an updated version.

Shaun Wilde
  • 8,228
  • 4
  • 36
  • 56
0

You can automatize this with powershell script: https://github.com/rpokrovskij/opencover4vs.ps1/blob/master/opencover4vs.ps1

Just configure two parameters (which dlls to include and which namespaces to include):

$TestDllsPatterns = @(,'*\bin\Debug\Vse.*.Test.dll')  
$TestableCodeNamespacePatterns = @(,'*') 
Roman Pokrovskij
  • 9,449
  • 21
  • 87
  • 142