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

Coverage for java code files #179

Open
plouf142 opened this issue Nov 9, 2021 · 2 comments
Open

Coverage for java code files #179

plouf142 opened this issue Nov 9, 2021 · 2 comments

Comments

@plouf142
Copy link

plouf142 commented Nov 9, 2021

Expected vs Actual Behaviour

It should have coverage report for all source, java source AND scala source.

Instead it, I get a voerage report only for scala source.

Steps to Reproduce

Any Play Framework with Java language and unit tests...

And run sbt jacoco.

Examine the html report. Only scala files are listed.

Environment

  • SBT version: 1.3.13
  • Plugin version: 3.4.0
  • Scala version(s): 2.12.13
  • Java version: java-1.8-openjdk
@plouf142
Copy link
Author

After various tests, I found a clue for this issue in the Jacoco FAQ, question Why does a class show as not covered although it has been executed? I followed the various suggestions, without success.

But now I wonder if this is really the way to go. In any case, the java classes are well instrumented, it is only when generating the report that there is a loss.

@jonvnieu
Copy link

Our project is running into the exact same issue. Are there any updates or known workarounds for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants