Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobetura and Java 8 #28

Closed
FriederikeHanssen opened this issue Aug 24, 2018 · 3 comments
Closed

Cobetura and Java 8 #28

FriederikeHanssen opened this issue Aug 24, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@FriederikeHanssen
Copy link
Member

FriederikeHanssen commented Aug 24, 2018

Cobetura has trouble with lambda expressions in java 8 (cobertura/cobertura#176). One work around could be to use the jacoco plugin, IF it works with travis.

E.g.:
<build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.2</version> <executions> <execution> <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>jacoco-report</id> <phase>site</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
The report is then added to the site package and can be displayed with target/site/index.html
<reporting> ... <!--report code Coverage with Jacoco --> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <reportSets> <reportSet> <reports> <!-- select non-aggregate reports --> <report>report</report> </reports> </reportSet> </reportSets> </plugin> ... </reporting>

@KochTobi
Copy link
Member

KochTobi commented Mar 9, 2020

According to cobertura/cobertura#176 this has been solved now by updating the cobertura version. Can anyone confirm this?

@christopher-mohr christopher-mohr added the bug Something isn't working label Jul 10, 2020
@christopher-mohr
Copy link
Contributor

We're still having issues with Cobertura and as far as I can see there hasn't been a release since the fix has been merged.

@christopher-mohr christopher-mohr self-assigned this Jul 13, 2020
@christopher-mohr
Copy link
Contributor

We decided to remove Cobertura and go with Jacoco. Solved by 39a4fce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants