We run Sonarqube Enterprise Edition v10.0 from TeamCity builds of gradle-based project. I have a project which includes several subprojects that have testFixtures sources. I updated the Jacoco configuration to include the testFixtures code. Code coverage for the testFixtures classes is added to the code coverage report for the whole project, both in the html report and in the xml file build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml. The project sets sonar.coverage.jacoco.xmlReportPaths to that file.
Unfortunately, when Sonarqube is run, it fails to report on code coverage for any of the testFixture classes, even though the covarage information for these classes appears in the xml file. It only reports coverage for main and test sources. Is anything else needed to make it include testFixtures code in the code coverage report?