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

前端 未结 4 1396
鱼传尺愫
鱼传尺愫 2021-02-18 18:23

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

相关标签:
4条回答
  • 2021-02-18 19:01

    Cobetura http://cobertura.sourceforge.net/

    0 讨论(0)
  • 2021-02-18 19:08

    There are many and google is your friend.

    NoUnit

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

    Codecover

    0 讨论(0)
  • 2021-02-18 19:12

    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.

    0 讨论(0)
  • 2021-02-18 19:13

    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.

    0 讨论(0)
提交回复
热议问题