In Eclipse with jacoco, I can get branch coverage percentage.

But in IntelliJ IDEA, I can only get lines&method coverage percentage in coverage window.

How to summarize branch coverage in IntelliJ IDEA?
In IntelliJ to add "branch coverage" to the coverage window, you can go to Run/EditConfiguration then proceed to Modify options/coverage setting and enable use tracing.
Here is an example

First, by default intellij not showing the branch coverage inside Coverage window.
Personally, I think it is better to show it by default.
So if you are interested in "branch coverage", you need to activate its config Use tracing.
You have 2 options:


If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With