jenkins - SonarQube: Multiple unit test and code coverage result files -


we have following structure in our project:

  • maven project 1
  • maven project 2
    • module 1
    • module 2
    • module 3
  • maven project 3

project 1 , 3 have each 1 unit test , code coverage result file. no problem. project 2 has 3 unit test , code coverage result files, 1 each module.

now want show unit test , code coverage in sonarqube. can configure 1 result file (sonar.surefire.reportspath , sonar.emma.reportpath).

how can configure 3 files, or have merge files?

you have configure sonar.surefire.reportspath , sonar.emma.reportpath each module. can't done command line, have in pom.xml of each module.

please note if using default maven settings i'm quite sure don't need specify sonar.surefire.reportspath , sonar.emma.reportpath @ because sonarqube @ standard location default.


Comments