Search code examples
javaunit-testingstatic-analysisemma

Java test coverage: who covers what?


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


Solution

  • 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