与JaCoCo合并集成和单元测试报告 [英] Merging Integration and Unit test reports with JaCoCo
本文介绍了与JaCoCo合并集成和单元测试报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用带有JaCoCo插件的Maven生成故障安全和surefire报告,但是我只能设法将它们保存在单独的报告中.我也想拥有一个整体的覆盖范围视图(在单元测试和集成测试之间合并).
I am generating failsafe and surefire reports with maven with the JaCoCo plugin, but I can only manage to get them in separate reports. I would like to have a overall coverage view (merge between both Unit Tests and Integration Tests) as well.
在我认为是彻底的Google搜索之后,我只能找到一种使用Sonar的方法.有没有更简单的方法可以做到这一点?
After what I think was a thorough google search I could only found a way to do this with Sonar. Is there any simpler way to do this?
相关问题:分别进行单元测试和集成测试
推荐答案
You should take a look into the documentation of JaCoCo Maven plugin which contains a merge
goal.
这篇关于与JaCoCo合并集成和单元测试报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文