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?
OpenCover report
364 views Asked by Bor1ss At
2
There are 2 answers
0
On
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 = @(,'*')
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 previouscoverage.xml
and save as an updated version.