Hi,

I´m running some integration test from module A getting first all the classes 
from module B, what I´m interested is in not add in the coverture some packages 
from B, but also some package from A.

I´m using excludes in the jacocco plugin, and all the packages that I´m specify 
from B are exlude perfectly, but the ones from A it dont

Here my config

  <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.7.201606060606</version>
                <executions>
                    <execution>
                        <id>prepare-jacoco-service-test-agent</id>
                        <!-- default pre-integration is to late for the 
process-exec-maven-plugin -->
                        <phase>package</phase>
                        <goals>
                            <goal>prepare-agent-integration</goal>
                        </goals>
                        <configuration>
                            <propertyName>failsafe.argLine</propertyName>
                            <includes>
                                <include>com.in*</include>
                            </includes>
                            <excludes>
                                <exclude>com.B.dg.*</exclude>
                                <exclude>com.B.es.core.server.vertx.*</exclude>
                                <!--f2e-core-test-->
                                <exclude>com.B.es.client.service.*</exclude>
                                <exclude>com.B.es.core.service.test.*</exclude>
                                <exclude>com.B.es.core.test.helper.*</exclude>
                                <exclude>com.B.es.coretest.*</exclude>
                                <!--f2e-mock-->
                                <exclude>com.A.f2e.*</exclude>
                            </excludes>
                            
<classDumpDir>${project.build.outputDirectory}</classDumpDir>
                            
<destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
                            <append>true</append>
                        </configuration>
                    </execution>

                    <execution>
                        <id>report-jacoco-service-test-results</id>
                        <goals>
                            <goal>report-integration</goal>
                        </goals>
                        <phase>verify</phase>
                        <configuration>
                            
<dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
                            
<outputDirectory>${project.build.directory}/coverage-reports/out/</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Any idea why any package of module A ot´s excluded?

-- 
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/a3354c94-c9f1-41ee-b704-ebbf4bfffcfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to