Skip to content

Add Codecov coverage reporting to Maven workflow#11

Merged
Garciat merged 4 commits into
mainfrom
copilot/add-codecov-report
Dec 14, 2025
Merged

Add Codecov coverage reporting to Maven workflow#11
Garciat merged 4 commits into
mainfrom
copilot/add-codecov-report

Conversation

Copilot AI commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Integrates JaCoCo code coverage generation and Codecov reporting into the existing Maven CI workflow.

Changes

  • pom.xml: Added JaCoCo Maven plugin (v0.8.12)

    • prepare-agent goal instruments test execution
    • report goal generates coverage XML during verify phase
  • .github/workflows/maven.yml: Added Codecov upload step

    • Uses codecov/codecov-action@v5 with CODECOV_TOKEN secret
    • Set fail_ci_if_error: true for CI enforcement
  • README.md: Added Codecov coverage badge

    • Badge displays current coverage percentage under the project title
    • Links to Codecov dashboard for detailed coverage reports

Coverage reports generate automatically on mvn clean verify package and upload to Codecov dashboard.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add Codecov report</issue_title>
<issue_description>Compute and report test coverage to Codecov via GitHub workflow. The existing maven workflow can be reused; just add steps as needed.

I already configured the Codecov secret key on GitHub.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits December 14, 2025 12:18
Co-authored-by: Garciat <118277+Garciat@users.noreply.github.com>
Co-authored-by: Garciat <118277+Garciat@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Codecov report to CI workflow Add Codecov coverage reporting to Maven workflow Dec 14, 2025
Copilot AI requested a review from Garciat December 14, 2025 12:22
@codecov

codecov Bot commented Dec 14, 2025

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 ☂️

@Garciat

Garciat commented Dec 14, 2025

Copy link
Copy Markdown
Owner

@copilot let's add the Codecov coverage badge image thingy under the project title in the readme file.

Co-authored-by: Garciat <118277+Garciat@users.noreply.github.com>

Copilot AI commented Dec 14, 2025

Copy link
Copy Markdown
Contributor Author

@copilot let's add the Codecov coverage badge image thingy under the project title in the readme file.

Added the Codecov badge to README.md in commit 96d7a14. The badge appears under the project title and will display the current coverage percentage while linking to the Codecov dashboard at https://codecov.io/gh/Garciat/java-type-classes.

@Garciat Garciat marked this pull request as ready for review December 14, 2025 12:32
@Garciat Garciat merged commit a20633c into main Dec 14, 2025
4 checks passed
@Garciat Garciat deleted the copilot/add-codecov-report branch December 14, 2025 12:33
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.

Add Codecov report

2 participants