结合 jMockit 的测试覆盖率报告 [英] Combined test coverage report with jMockit
本文介绍了结合 jMockit 的测试覆盖率报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将 jmockit 与 Ant 一起使用.对于每个测试文件运行,在覆盖率报告文件夹中创建/覆盖一个 index.html
文件.
I am using jmockit with Ant. For each test file run, an index.html
file gets created/over-written in the coverage report folder.
对于多个测试文件,这个 index.html
会被覆盖.
For multiple test files, this index.html
gets over-written.
我正在寻找所有文件的综合报告.应该做什么?我已阅读有关使用 .ser
文件的信息,但我不知道如何创建然后使用它们?
I am looking for a combined report for all files. what should be done? I have read about using .ser
files but I do not know how to create and then use them?
推荐答案
有一个看这里一>.诀窍是设置
-Djmockit-coverage-output=merge
(或 serial
- 阅读上面链接中的差异).
(or serial
- read up on the differences in the link above).
干杯,
这篇关于结合 jMockit 的测试覆盖率报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文