Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java test coverage: who covers what?

Is there a tool similar to emma, that reports which test covers a specific implementation ?

like image 420
Bastl Avatar asked Oct 01 '12 13:10

Bastl


1 Answers

In case you want to see, which tests cover which line of code, you may use Clover that shows you:

  • how many times one line got covered
  • which tests covered line in question

To see what one can expect from Clover, here is a screenshot: Clover coverage report. Opened info about test that hit line #49

like image 76
Lauri Avatar answered Sep 24 '22 03:09

Lauri