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?
2 Answers
0
votes
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.
0
votes
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 = @(,'*')