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

Add Support for JaCoCo and dorny/test-reporter for Code Coverage #8

Closed
wants to merge 4 commits into from

Conversation

ChrystianMelo
Copy link
Owner

This pull request adds support for generating and visualizing code coverage reports using JaCoCo and dorny/test-reporter. The main changes include:

  • Configuration of JaCoCo in Maven:

    • Added the JaCoCo plugin to pom.xml to instrument class files and generate coverage reports.
    • Configured to generate coverage reports during the verify phase.
  • Update to GitHub Actions Workflow:

    • Added steps in .github/workflows/maven.yml to generate the JaCoCo report and upload it as an artifact.
    • Integrated dorny/test-reporter to automatically comment code coverage results on pull requests.

Details of Changes

  1. pom.xml File:

    • Added the jacoco-maven-plugin to generate coverage reports.
  2. .github/workflows/maven.yml File:

    • Modified the workflow to include steps for generating and uploading JaCoCo reports.
    • Included dorny/test-reporter to comment coverage results on pull requests.

@ChrystianMelo ChrystianMelo linked an issue Jun 14, 2024 that may be closed by this pull request
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.

Improving Test Result Visualization
1 participant