jenkins - Not getting the coverage on new code in sonar dashboard -
i trying use scm activity plugin 1.8 clearcase , using sonar 4.3.3 , got blame information in sonar did not getting coverage on new code in dashboard
you should add code coverage tool build process. if use maven, can add:
<build> ... <plugins> ... <plugin> <groupid>org.jacoco</groupid> <artifactid>jacoco-maven-plugin</artifactid> <version>0.7.5.201505241946</version> <executions> <execution> <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals> </execution> </executions> <configuration> <rules> <rule> <element>class</element> <excludes> <exclude>*test</exclude> </excludes> </rule> </rules> </configuration> </plugin> </plugins> ... </build>
Comments
Post a Comment