OpenCover:可以将多个报告合并为一个吗? [英] OpenCover: possible to merge multiple reports into one?

查看:266
本文介绍了OpenCover:可以将多个报告合并为一个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OpenCover为Web应用程序生成功能测试报道.这些测试的运行时间相当长(超过3小时),因此我们将它们分成了多个并行运行的测试.因此,有六个报告,而不是一个覆盖报告.

I'm using OpenCover to generate functional test coverage for a web application. These tests are fairly long running (3+ hours), so we've chopped them up into multiple tests that run in parallel. So instead of a single coverage report, there are six.

为了将这些覆盖率报告导入SonarQube,我需要找出一种将它们合并到一个超级报告中的方法. ReportGenerator支持将多个报表合并为一个报表,但是可以创建HTML输出,而SonarQube不能使用该输出.

In order to import these coverage reports into SonarQube, I need to figure out a way to combine them into one uber report. ReportGenerator supports merging multiple reports into one, but creates HTML output, which is not something SonarQube can consume.

目前,我的选择是

  1. 手动滚动OpenCover报告合并(问题!)
  2. 连续运行我的功能测试,大大增加了故障反馈时间

还有其他选项吗?

推荐答案

我已在SonarQube .NET端创建了以下票证,以允许指定多个覆盖率报告并将其汇总:

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.

这篇关于OpenCover:可以将多个报告合并为一个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆