I am trying to get coverage report of GWTTestCases using 
jacoco-gwt-maven-plugin.

I followed the below link: https://github.com/errai/jacoco-gwt-maven-plugin

and my pom.xml is as below:

=======================================================
=======================================================

<build>
    
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>gwt-maven-plugin</artifactId>
            <version>2.7.0</version>
            <executions>
                <execution>
                    <configuration>
                        <extraJvmArgs>-Xmx512m</extraJvmArgs>
                    </configuration>
                    <goals>
                        <goal>compile</goal>
                        <goal>generateAsync</goal>
                        <goal>test</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

        <plugin>
            <groupId>org.jboss.errai</groupId>
            <artifactId>jacoco-gwt-maven-plugin</artifactId>
            <version>0.5.4.201202141554</version>
            <configuration>
                
<snapshotDirectory>${project.build.directory}/test-classes</snapshotDirectory>
                <propertyName>jacocoArgs</propertyName>
            </configuration>
            <executions>
                <execution>
                    <id>jacoco-initialize</id>
                    <goals>
                        <goal>prepare-agent</goal>
                    </goals>
                </execution>
                <execution>
                    <id>jacoco-site</id>
                    <phase>package</phase>
                    <goals>
                        <goal>report</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

        <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.6</version>
            <configuration>
                <argLine>${jacocoArgs}</argLine>
            </configuration>
        </plugin>
    </plugins>      
</build>

=======================================================
========================================================
When I run the Project using commands as, mvn clean mvn install Inside target 
folder I can see, site Directory --> jacoco Directory --> index.html file gets 
created.

When I open index.html, code coverage is 0%. What I am doing wrong here, Please 
help.

-- 
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/23b4a19f-a69f-46b3-8e92-b99b4cb77974%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to