Hi ,

I have been fighting with this problem for a while now, please help resolve 
this.

I have multi module project and I have set of cucumber tests written for 
all modules in one test module. I am trying to get the coverage from the 
test module as well as from the source module.

I have tried merge and report-aggregate for this pupose, none of the worked 
for me,

Here is the my setup looks like

Parent module:


<plugin>
    <groupId>org.jacoco</groupId>
    <artifactId>jacoco-maven-plugin</artifactId>
    <version>0.7.7.201606060606</version>
    <configuration>
        <dataFile>${project.build.directory}/jacoco.exec</dataFile>
    </configuration>
    <executions>
        <execution>
            <id>prepare-agent</id>
            <goals>
                <goal>prepare-agent</goal>
            </goals>
            <configuration>
                <propertyName>argLine1</propertyName>
            </configuration>
        </execution>
        <execution>
            <id>merge</id>
            <goals>
                <goal>merge</goal>
            </goals>
            <configuration>
                <fileSets>
                    <fileSet 
implementation="org.apache.maven.shared.model.fileset.FileSet">
                        <directory>${project.build.directory}</directory>
                        <includes>
                            <include>*.exec</include>
                        </includes>
                    </fileSet>
                </fileSets>
            </configuration>
        </execution>
    </executions>
</plugin>



Child source modules does not have the plugin at all.


Child test module 


<plugin>
    <groupId>org.jacoco</groupId>
    <artifactId>jacoco-maven-plugin</artifactId>
    <version>0.7.7.201606060606</version>
    <executions>
        <execution>
            <id>report-aggregate</id>
            <phase>post-integration-test</phase>
            <goals>
                <goal>report-aggregate</goal>
            </goals>
        </execution>
    </executions>
</plugin>



And I ran the commands 


mvn jacoco:prepare-agent install

and 

jacoco:merge


The result is 


Skipping JaCoCo merge execution due to missing execution data files


and


jacoco:report-aggreagte


The result is empty report



-- 
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/5240fbba-9652-4eb8-853e-68e7838d0220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to