OpenCover: possible to merge multiple reports into one?

。_饼干妹妹 提交于 2019-12-03 12:31:46

I have created the following ticket on the SonarQube .NET side to allow multiple coverage reports to be specified, and to aggregate them: http://jira.codehaus.org/browse/SONARPLUGINS-3666.

In the meantime though, I cannot think of other options besides the 2 you already had.

Newer version of Report generator has support for wild card.

You can provide all XML reports as "*.XML" and Report Generator will generate one consolidated report from it.

OpenCover has -mergeoutput argument that makes it to work with the -output file in an append-only fashion, preserving previous measurements found there. That should allow you to call individual test runs separately -- as long as your SUT is still same.

My experience with trying to run tests with different -filter arguments is that OpenCover refuses to reopen module that has been filtered out in a previous test run. Still, worth a try from my opinion.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!