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

jacoco does not produce code coverage reports #1

Open
acrandal opened this issue Feb 10, 2024 · 0 comments
Open

jacoco does not produce code coverage reports #1

acrandal opened this issue Feb 10, 2024 · 0 comments

Comments

@acrandal
Copy link

Hello - I have been looking for a working example of how to generate code coverage reports with JUnit5 for quite a while, and was excited to give this Junit5Examples repo a try. Unfortunately, it does not generate reports after following the steps outlined in your howto guide.

Repository cloned with no file edits.

Java version: Openjdk version "21.0.1" 2023-10-17
Maven version: Apache Maven 3.6.3

Execution of "mvn package" runs to completion and all tests pass, but the dreaded non descriptive error for jacoco pops up. I've never been able to resolve this on any computer I've used, no matter java or maven configurations. Any insights or suggestions on how to fix it would be wonderfully welcomed:

[INFO] --- jacoco-maven-plugin:0.8.7:report (default-report) @ JUnit5Examples ---
[INFO] Skipping JaCoCo execution due to missing execution data file.

The surefire-reports directory is made in target/surefire-reports with plenty of .txt and .xml files, but no jacoco target/site directory for the code coverage output is generated.

Screenshot of end of mvn package run and system information:

jacocoNotRunning

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

1 participant