0

I have a multi-module Maven project. Many of the tests are in the conventional directory (src/test/java) but about 60% are in single module.

By default, Jacoco does not create coverage for those tests.

I'd like the tests in the single module to contribute to coverage.

Nb. We collects coverage in Sonar.

Alexander Collins
  • 129
  • 1
  • 2
  • 7
  • Possible duplicate of [SonarQube: Coverage incomplete on multimodule gradle project with JaCoCo](https://stackoverflow.com/questions/41737758/sonarqube-coverage-incomplete-on-multimodule-gradle-project-with-jacoco) – Godin Oct 15 '18 at 21:17
  • That's a Gradle answer I'm afraid. – Alexander Collins Oct 22 '18 at 09:12
  • IMO it is generic enough - both questions are mostly about SonarQube. – Godin Oct 22 '18 at 20:08

1 Answers1

1

To fix this, set the following configuration item:

<inclNoLocationClasses>true</inclNoLocationClasses>
Alexander Collins
  • 129
  • 1
  • 2
  • 7