Below is my maven configuration.

<plugin>
                                 <groupId>org.apache.maven.plugins</groupId>
                                 <artifactId>maven-surefire-plugin</artifactId>
                                 <version>2.18</version>
                                 <configuration>
                                 <!-- Sets the VM argument line used when unit 
tests are run. -->
                                        <argLine>-Xms512m -Xmx1024m 
-XX:MaxPermSize=512m ${jacoco.agent.argLine}</argLine>
                                 </configuration>
                         </plugin>
                         <plugin> 
                                <groupId>org.jacoco</groupId>
                                <artifactId>jacoco-maven-plugin</artifactId>
                                <version>0.7.5.201505241946</version>
                                <configuration>
                                <dataFile>target/jacoco.exec</dataFile>
                        </configuration>
                                <executions>
                                <execution>
                                    <id>pre-unit-test</id>
                                    <goals>
                                        <goal>prepare-agent</goal>
                                    </goals>
                                    <configuration>
                                        
<propertyName>jacoco.agent.argLine</propertyName>
                                        <destFile>target/jacoco.exec</destFile>
                                                </configuration>
                                </execution>
                               <execution>
                                                <id>default-report</id>
                                                <phase>test</phase>
                                                <goals>
                                                <goal>report</goal>
                                                </goals>
                                        </execution>
                                </executions>
                         </plugin>



When I run using maven 

i.e. clean test 

after this it creates the jacoco.exec file then I run

jacoco:report and it generates the resport but for except one package for all 
other it shows 0% code coverage which is not the case. when I run the same 
report using cobertura it shows non 0% code coverage for those packages.

Any Idea what is wrong here.

Thanks
Shantanoo K

-- 
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/c4104170-88b5-458a-b74b-4af7a1024bd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to