Im using Powermock to mock some static methods for unit testing and I found 
that jacoco on-the-fly coverage analysis is not updated for mock unit tests.

Because of that I tried to use  jacoco offline analysis.With that I was able to 
get the coverage results.
There after I found that when I write new test cases the Jacoco will not update 
the coverage. It is still keeping  old coverage.

following is my maven configuration 

    
        <!--  Code coverage -->
        
              
        <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco.version}</version>
                <executions>
                 
                    <execution>
                        <id>default-instrument</id>
                        <goals>
                            <goal>instrument</goal>                          
                        </goals>              
                <configuration>
                 <skip>${jacoco.skip.instrument}</skip>
                
              </excludes>
            </configuration>
                    </execution>
                    <execution>
                        <id>default-restore-instrumented-classes</id>
                          <phase>pre-integration-test</phase>
                        <goals>
                            <goal>restore-instrumented-classes</goal>
                        </goals>
                        <configuration>
                       <skip>${jacoco.skip.instrument}</skip>
                        </configuration>
                    </execution>
                    <execution>
                        <id>report</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>                        
                        <configuration>
                            
<dataFile>${project.build.directory}/jacoco.exe</dataFile>
                            <excludes>
                            <exclude>
                           
                            </excludes> 
                        </configuration>
                    </execution>
                </executions>

-- 
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/b82ca6b4-a1f8-4e49-b814-cd02ed7db6f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to