Open JaCoCo report in Intellij IDEA

31,504

Solution 1

Found the solution. I have installed the coverage plugin and the EclEmma plugin (not sure if this one is really necessary...). Then "Analyse -> Show Coverage Data..." and pick your Jacoco output file. This file HAS to have the .exec extension, otherwise you can't select it. That was my problem...

Thanks

Solution 2

For everyone being stuck (like me) trying to find the Show Coverage Data... action. It's been relocated to the Run section.

As you can read in the official documentation (Version 2020.3), the action can be reached by using the quick search, the various keymaps or by navigating to Run > Show Coverage Data....

Share:
31,504
tibo
Author by

tibo

Updated on March 01, 2021

Comments

  • tibo
    tibo about 3 years

    I am trying to find dead code on our application by using a code coverage tool (rather a static code analysis tool). I have chosen JaCoCo and am able to get a report thanks to the JaCoCo agent.

    I know that Intellij IDEA works with JaCoCo but I couldn't find anyway to import my JaCoCo report into Intellij IDEA. Any idea on how to do that?

    Thanks