JaCoCo with IntelliJ

Ixbitz picture Ixbitz · Apr 19, 2017 · Viewed 30.9k times · Source

So this question might not be really specific, but i'm asking it anyway.

I'm trying to use JaCoCo with IntelliJ to gather coverage reports on unit tests. However, i don't have any experience whatsoever to set this up.

In Netbeans you just have to install the JaCoCo plugin and select to test with coverage. How does this work in IntelliJ?

I have googeled for quite a while without success. If someone has a good tutorial to set this up, i'd really appreciate it!

Answer

jwenting picture jwenting · Aug 3, 2017

You don't need to do anything, if you have a recent version of IntelliJ. Just select to use JaCoCo as the coverage tool in the run configuration for your test suite or project and it will use its built-in JaCoCo version.