GenericTestExecution does not work with maven multi-modules

Using Sonarqube 7.7 with latest sonar-maven-plugin

Having a Maven multi-module structure like:

a with property (<sonar.testExecutionReportPaths>${project.build.directory}/karma-reports/TEST-gui.Sonar.xml</sonar.testExecutionReportPaths>)

  • b (this module contains the generic test execution report)
  • c

Executing sonar:sonar on parent module a does not execute the sensor on module b to collect the generic test execution.
Executing sonar:sonar directly on module b works as expected.

Kind regards,
Michael

1 Like

Sorry for the late reply, Michael.
Do you happen to have a simple reproducer? Or do you have logs with debug enabled of the execution of module a?

I tested this now with SonarQube 7.9 LTS and maven sonar:sonar goal

The problem is that the sensor for the generic test reports is only checked at the top maven project, not on its child projects.

This is very important for us to work, please consider allowing generic test reports for all maven child modules.

Hi Michael,

The request for either logs or a simple reproducer stands. Do you have either of those available?

 
:slight_smile:
Ann

There is not much outcome of the logs as the sensor only runs on the top level module as I described. I think it should be straight forward for you to change the execution policy of this sensor to be also executed on submodules.
If I made the wrong conclusion out of the logs please let me know, then I will prepare a reproducer.

Hi

I’ll let Duarte decide about the logs, but it makes sense to go ahead with a reproducer.

 
Thx,
Ann