kyiu
kyiu

Reputation: 1976

Java code coverage : method level unit test

Are there some tools or Eclipse plugin that could detect that a method hasn't been subject to a unit test (JUnit/TestNg)?

Thx in advance.

Upvotes: 2

Views: 518

Answers (2)

Kai Sternad
Kai Sternad

Reputation: 22840

EclEmma is an Eclipse plugin that does just that.

Upvotes: 4

duffymo
duffymo

Reputation: 308988

IntelliJ gives you code coverage - no plugins required. It reports % of lines covered by your tests and highlights which ones are executed and which ones have not.

Time to upgrade your IDE.

Upvotes: 0

Related Questions