I have spent the better part of a day trying to figure out why my Quarkus project was showing far different results in intellij vs the Jacoco report.
My intellij covereage report was far greater than that of the Jacoco reports. Everything seemed fine, all test classes were marked with @QuarkusTest and all known paths through the code were taken care of in the test cases. So why was there this mismatch?
It turns out that by using Lombok to generate getters and setters in my code, Jacoco was missing these generated methods.
To combat this, I had to create a configuration file named lombok.config and put this in my root directory (this doesn’t need to be the root dir but it made it easier based on my project).
This file needed one line:
lombok.addLombokGeneratedAnnotation = true
Once this was added and I recreated my reports, I had no more issues getting quality coverage being reported.
More details can be found here
Be sure to check out some other articles at bernieslearnings.com