In my Java project, I added a wiremock rule to a few tests. Now my Jacoco code coverage in sonar dropped to 0%. 😩 Maven is running the goals, bit not creating the jacoco.exec file.

That's one of the worst things in Java. Once you understood the concept of immutables, the build tools start to annoy you.

  • 0
    Are you running tests where you interrupt threads? I've had that problem before and it did not allow jacoco to flush coverage to disk.
  • 1
    @ChappIO ah i might not have closed some ExecutorServices. I'll try that on Monday.
Add Comment