Not able to exclude packages for code coverage

605 views
Skip to first unread message

ashis...@gmail.com

unread,
Jan 11, 2018, 3:47:52 AM1/11/18
to JaCoCo and EclEmma Users
Pom.xml

<plugin>
<groupId> org.jacoco<groupId>
<artifactId>jacoco-maven-plugin<artifactId>
<configuration>
<append>true</append>
<excludes>
<exclude>com.abc.def.*.java<exclude>
<excludes>
<configuration>

I want to exclude java files under package com.abc.def for code coverage.Using jacoco v0.7.8.
But still sonar jacoco code coverage is not improving and remains same as 1 % and java files under mentuined package still coming in code coverage report as seen from browser localhost:9000. please suggest the exact sytax in detail if posible with example to correct this issue.

Thanks,
Ashish

Message has been deleted

Evgeny Mandrikov

unread,
Jan 11, 2018, 6:12:02 AM1/11/18
to JaCoCo and EclEmma Users
Specification of exclusions in configuration of jacoco-maven-plugin affects only report generated by jacoco-maven-plugin ( http://www.jacoco.org/jacoco/trunk/doc/report-mojo.html ) and not taken into account by SonarQube.

About exclusions in SonarQube please refer to its documentation - https://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreCodeCoverage
Or seek help in its community - https://www.sonarqube.org/community/
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages