intellij idea社区版 - 代码覆盖率? [英] intellij idea community edition - code coverage?

查看:1299
本文介绍了intellij idea社区版 - 代码覆盖率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看比较矩阵,看起来IDEA CE根本不支持代码覆盖。有很多可用的代码覆盖工具,所以也许可以在IDEA CE中加入一些东西吗?

Looking at comparison matrix it looks like IDEA CE does not support code coverage at all. Bu there are lots of code coverage tools available, so perhaps it's possible to incorporate something into IDEA CE?

推荐答案

那么,什么都没有在CE工作是集成代码覆盖。任何外部工具都可以工作。例如,Emma集成到maven中,在IDEA中设置maven目标很容易。

So, what doesn't work in CE is integrated code coverage. Any external tool would work. Emma for example integrates into maven and setting up maven goals inside IDEA is easy.

只需更改你的pom.xml以包含emma maven插件,它应该在IDEA和普通命令行中工作。

Just alter your pom.xml to include the emma maven plugin and it should work inside IDEA and on normal command line.

http://emma.sourceforge .net / maven-emma-plugin /

这篇关于intellij idea社区版 - 代码覆盖率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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