Hi everyone,
Even after reading Jacoco Aggregate Report I'm still struggling to
configure Jacoco with Maven Multimodule configuration and send all data to
Sonar (7.7). I'm using Spring Boot with Spring Cloud.
Currently, I have this structure on my application:
Parent
- commons-module
- eureka-module
- module-a
- module-b
- module-c
- module-d
- module-e
- module-f
Under build section, I'm using this configuration (jacoco.version=0.8.4):
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.60</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
And after running mvn jacoco:report-aggregate, I get this result:
Element Missed Instructions Cov. Missed Branches Cov.
Total 0 of 0 n/a 0 of 0 n/a
So what I have done wrong?
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/c69bae1a-f326-4152-809d-4858c1a943ea%40googlegroups.com.