I’ve a multi module maven project with a parent containing 2 child as follows
parent
|
| - frontend
| - backend
The frontend module is a mavenized reactjs project, and backend is a java project.
I’m using jest-sonar-reporter
in the frontend module which generates the test-report.xml
The issue - the test-report.xml is only read by sonar scanner if the below property is configured at parent project.
<sonar.testExecutionReportPaths>frontend/coverage/test-report.xml</sonar.testExecutionReportPaths>
If I configure it to the frontend module then the report is not being read by scanner and unit test for frontend projects are not shown on the sonar dashboard.
sonar.testExecutionReportPaths
property should be supported at the module level. Defining the module report paths in parent project is simply a violation of modularity principle.