如何将多个项目的TeamCity代码覆盖率报告收集到一个报告中? [英] How do I gather TeamCity code coverage reports from multiple projects into one report?
问题描述
我们使用TeamCity 6中的内置覆盖率应用程序(即将升级到7.1)
如果我们希望查看特定构建的代码覆盖率(或其他指标),可以导航到该版本构建,但如果我们能从所有/一些当前项目/构建配置中提取一些有趣的指标并将其全部显示出来,那就太好了。
We use the build in coverage application in TeamCity 6 (about to upgrade to 7.1) If we wish to see the code coverage (or other metrics) of a particular build it is fine as we can navigate to that build, but it would be great if we could pluck out a few interesting metrics from all/some of the current projects/build configurations and display them all together.
为方便起见我希望可以从TeamCity本身访问新的显示,但是如果有需要单独解决方案的解决方案,我们可以看看它们。
For convenience I would expect the new display to be accessible from within TeamCity itself, however if there are solutions that require a separate solution we could look at them.
推荐答案
如果您要比较不同项目中不同时间的一组通用指标(例如代码覆盖率),请 SonarQube 可能是您想要的。
If you want to compare a set of common metrics (e.g. code coverage) across different projects and over time then SonarQube is probably what you want.
您可以通过添加 sonar-project.properties 文件到每个项目,并调用声纳运行器从命令行构建步骤开始。
You can integrate it with TeamCity by adding a sonar-project.properties file to each project and calling sonar-runner from a command line build step.
这篇关于如何将多个项目的TeamCity代码覆盖率报告收集到一个报告中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!