Skip to content

Add Codecov coverage badge and configuration#234

Merged
RoiSoleil merged 3 commits into
masterfrom
feature/coverage-badge-303817167026478930
Apr 23, 2026
Merged

Add Codecov coverage badge and configuration#234
RoiSoleil merged 3 commits into
masterfrom
feature/coverage-badge-303817167026478930

Conversation

@RoiSoleil

Copy link
Copy Markdown
Contributor

I have implemented a coverage badge for the MoreUnit-Eclipse project.

Key changes:

  1. Maven Configuration: Added jacoco-maven-plugin to the aggregator POM (org.moreunit.build/pom.xml) within a new coverage profile. This profile handles agent preparation for all modules and aggregation of results in the build directory.
  2. GitHub Action: Created .github/workflows/coverage.yml which triggers on pushes and pull requests to the master branch. It performs a full build with the coverage profile and uploads the aggregated Jacoco XML report to Codecov.
  3. README: Added a Codecov badge at the top of the README.md file to display the current coverage status.

Verified the Maven configuration by running a build with the coverage profile and confirming the generation of the jacoco.xml report.


PR created automatically by Jules for task 303817167026478930 started by @RoiSoleil

- Configure jacoco-maven-plugin in org.moreunit.build/pom.xml with a coverage profile.
- Add .github/workflows/coverage.yml to automate coverage report generation and upload to Codecov.
- Add Codecov badge to README.md.

Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@RoiSoleil RoiSoleil left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

- Configure jacoco-maven-plugin in org.moreunit.build/pom.xml with a coverage profile.
- Use @{argLine} in tycho-surefire-plugin for Jacoco agent injection.
- Initialize <argLine> property in parent POM to prevent literal '@{argLine}' errors in standard builds.
- Create .github/workflows/coverage.yml for automated coverage reporting.
- Add Codecov badge to README.md.

Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>

@RoiSoleil RoiSoleil left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

- Switch from 'argLine' to 'tycho.testArgLine' for JaCoCo agent injection in Tycho.
- Initialize 'tycho.testArgLine' property in parent POM to avoid build failures.
- Update jacoco-maven-plugin to populate 'tycho.testArgLine'.
- Create .github/workflows/coverage.yml and update README.md.

Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>
@RoiSoleil RoiSoleil merged commit 2051a01 into master Apr 23, 2026
5 of 6 checks passed
@codecov

codecov Bot commented Apr 23, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@RoiSoleil RoiSoleil deleted the feature/coverage-badge-303817167026478930 branch April 24, 2026 08:54
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

Successfully merging this pull request may close these issues.

1 participant