问题
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:
- EclEmma
- 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