sonarqube {
properties {
property "sonar.projectName", "Our project"
property "sonar.jacoco.itReportPath", 'build/jacoco/integrationTest.exec'
property "sonar.exclusions", "**/node_modules/**/*.js,**/bower_components/**/*.js,**/bootstrap/**/*.js,**/coverage/**/*.js"
property "sonar.jacoco.reportMissing.force.zero", "true"
}
}
File '/Users/tfnico/projects/our-project/B/src/main/java/com/foo/dao/filter/EntitySpecification.java' is ignored. It is not located in module basedir '/Users/tfnico/projects/our-project/B'.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/be249995-615b-4f1e-b008-4e5dcb233435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,This is indeed how the import of JaCoCo code coverage reports is working in the java analyzer.The correct way to go around that limitation is to merge the JaCoCo reports between your modules so the coverage information you are looking for will be in the report imported by that module.Cheers,
Le ven. 21 oct. 2016 à 15:13, <tfn...@gmail.com> a écrit :
On Friday, October 21, 2016 at 3:11:14 PM UTC+2, tfn...@gmail.com wrote:File '/Users/tfnico/projects/our-project/B/src/main/java/com/foo/dao/filter/EntitySpecification.java' is ignored. It is not located in module basedir '/Users/tfnico/projects/our-project/B'.--Correction, the above warning should be like this (replaced B with A):File '/Users/tfnico/projects/our-project/B/src/main/java/com/foo/dao/filter/EntitySpecification.java' is ignored. It is not located in module basedir '/Users/tfnico/projects/our-project/A'.
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/be249995-615b-4f1e-b008-4e5dcb233435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Nicolas, thanks for your reply.Conceptually, would that mean that I merge the destination-file of module A (A/build/jacoco/test.exec) into the destination file of module B (B/build/jacoco/test.exec) before sonarqube starts analyzing module B?This sounds tricky since A depends on B having been built first (A depends on B). I could run two builds: one for running tests generating the initial exec files, and a second one for merging them and running sonarqube. But I have a feeling things could get complicated quickly as the number of modules increases...Do you have any pointers on how to do this properly in a Gradle build?
On Fri, Oct 21, 2016 at 5:32 PM, Nicolas Peru <nicola...@sonarsource.com> wrote:
Hi,This is indeed how the import of JaCoCo code coverage reports is working in the java analyzer.The correct way to go around that limitation is to merge the JaCoCo reports between your modules so the coverage information you are looking for will be in the report imported by that module.Cheers,
Le ven. 21 oct. 2016 à 15:13, <tfn...@gmail.com> a écrit :
On Friday, October 21, 2016 at 3:11:14 PM UTC+2, tfn...@gmail.com wrote:File '/Users/tfnico/projects/our-project/B/src/main/java/com/foo/dao/filter/EntitySpecification.java' is ignored. It is not located in module basedir '/Users/tfnico/projects/our-project/B'.--Correction, the above warning should be like this (replaced B with A):File '/Users/tfnico/projects/our-project/B/src/main/java/com/foo/dao/filter/EntitySpecification.java' is ignored. It is not located in module basedir '/Users/tfnico/projects/our-project/A'.
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/be249995-615b-4f1e-b008-4e5dcb233435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--