Is there any handy code coverage tool to be used with JUnit?

夙愿已清 提交于 2020-01-01 07:33:13

问题


Is there handy code coverage tool to be used with JUnit?


回答1:


I would imagine most code coverage tools can be used pretty easily with JUnit. Previously I've used EMMA, which is good. If you're an Eclipse user, there's an Eclipse plugin called EclEmma to integrate things.




回答2:


Here are my preferences in that order:

  1. EclEmma
  2. Clover

And here is a bunch of open source tools and with comparison.

Hope that helps.




回答3:


There are many and google is your friend.

NoUnit

Coverlipse (I would recommend this, but its an eclipse plugin)

Codecover




回答4:


Cobetura http://cobertura.sourceforge.net/



来源:https://stackoverflow.com/questions/5269636/is-there-any-handy-code-coverage-tool-to-be-used-with-junit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!