Search code examples
javaunit-testingantcode-coveragejmockit

Combined test coverage report with jMockit


I am using jmockit with Ant. For each test file run, an index.html file gets created/over-written in the coverage report folder.

For multiple test files, this index.html gets over-written.

I am looking for a combined report for all files. what should be done? I have read about using .ser files but I do not know how to create and then use them?


Solution

  • Have a look here. The trick is to set

    -Djmockit-coverage-output=merge
    

    (or serial - read up on the differences in the link above).

    Cheers,