简体   繁体   English

在jar文件中启用任何Java代码覆盖率工具以生成输出

[英]enable any java code coverage tool in jar file to generate output

Is there any tool which can be embedded in jar file and generate code coverage in output file each time jar is run. 是否有任何工具可以嵌入jar文件中,并在每次运行jar时在输出文件中生成代码覆盖率。

plz dont mention any eclipse/netbeans plugin, i cant use IDE. 请不要提及任何eclipse / netbeans插件,我不能使用IDE。

You can use emma.jar of Emma code coverage tool. 您可以使用Emma代码覆盖率工具的emma.jar。 But it will not generate the report by its own you have to execute some commands for it. 但是它不会自己生成报告,您必须为其执行一些命令。 But its very good and generate report in various formats like xml or html 但是它非常好,可以生成各种格式的报告,例如xml或html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM