I am the new Cobertura. I wrote a test case and I use the Lambda expression in coding and it gives me an error on how to solve this problem.
I search on google and find out that Jacoco supports Java8.
But how to insert jacoco plugin as Cobertura plugin which I don't get.
The Cobertura plugin in my spring pom.xml boot project looks like this:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>xml</format>
</formats>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>cobertura</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
Thank.
source
share