All Projects → Madrapps → jacoco-report

Madrapps / jacoco-report

Licence: MIT license
Github action that publishes the JaCoCo report as a comment in the Pull Request

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jacoco-report

tarpaulin
📈 GitHub Action for code coverage reporting with tarpaulin
Stars: ✭ 69 (+122.58%)
Mutual labels:  coverage, code-coverage, github-actions
Single cov
Actionable code coverage.
Stars: ✭ 154 (+396.77%)
Mutual labels:  coverage, code-quality, code-coverage
qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+261.29%)
Mutual labels:  actions, code-quality, github-actions
code-coverage-action
GitHub Action that generates code coverage reports
Stars: ✭ 28 (-9.68%)
Mutual labels:  coverage, code-coverage, github-actions
action
📦📊 GitHub Action to reports on the size of your npm package
Stars: ✭ 36 (+16.13%)
Mutual labels:  actions, report, github-actions
jacoco-badge-generator
Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
Stars: ✭ 53 (+70.97%)
Mutual labels:  coverage, jacoco, github-actions
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+100%)
Mutual labels:  actions, github-actions
chart-testing-action
A GitHub Action to lint and test Helm charts
Stars: ✭ 139 (+348.39%)
Mutual labels:  actions, github-actions
CI-Report-Converter
The tool converts different error reporting standards for deep compatibility with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc).
Stars: ✭ 17 (-45.16%)
Mutual labels:  actions, report
zola-deploy-action
Github action for building a Zola site and deploying to Github Pages
Stars: ✭ 131 (+322.58%)
Mutual labels:  actions, github-actions
jest-github-action
Jest action adding checks with annotations to your pull requests and coverage table as comments
Stars: ✭ 134 (+332.26%)
Mutual labels:  actions, github-actions
SpringBootRestAPI
A ready-to-use Template for Rest API using spring-boot-microservices, MongoDB as Database, Integrated with codecov and sonarqube, deployable to cloud.
Stars: ✭ 24 (-22.58%)
Mutual labels:  jacoco, codecoverage
action-junit-report
Reports junit test results as GitHub Pull Request Check
Stars: ✭ 103 (+232.26%)
Mutual labels:  actions, github-actions
code-owner-self-merge
A GitHub Action for letting CODEOWNERS merge PRs via green PR reviews
Stars: ✭ 43 (+38.71%)
Mutual labels:  actions, github-actions
gh-actions
A Github action for generating Terraform module documentation using terraform-docs and gomplate
Stars: ✭ 56 (+80.65%)
Mutual labels:  actions, github-actions
algoliasearch-crawler-github-actions
Algolia Crawler Github action
Stars: ✭ 24 (-22.58%)
Mutual labels:  actions, github-actions
branch-protection-bot
A bot tool to disable and re-enable "Include administrators" option in branch protection
Stars: ✭ 57 (+83.87%)
Mutual labels:  actions, github-actions
QuestPDF
QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API.
Stars: ✭ 2,872 (+9164.52%)
Mutual labels:  reporting, report
action-cats
A quick Github action which posts a cat gif on your PRs to reward you for pushing code!
Stars: ✭ 64 (+106.45%)
Mutual labels:  actions, github-actions
xray-action
... a GitHub action to import test results into "Xray" - A complete Test Management tool for Jira.
Stars: ✭ 16 (-48.39%)
Mutual labels:  actions, github-actions

jacoco-report

Tests

A Github action that publishes the JaCoCo report as a comment in the Pull Request with customizable pass percentage for modified files and for the entire project.

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

  • paths - [required] Comma separated paths of the generated jacoco xml files.
  • token - [required] Github personal token to add commits to Pull Request
  • min-coverage-overall - [optional] The minimum code coverage that is required to pass for overall project
  • min-coverage-changed-files - [optional] The minimum code coverage that is required to pass for changed files
  • title - [optional] Title for the Pull Request comment

Outputs

  • coverage-overall - The overall coverage of the project
  • coverage-changed-files - The total coverage of all changed files

Example Workflow

name: Measure coverage

on:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Run Coverage
        run: |
          chmod +x gradlew
          ./gradlew testCoverage

      - name: Add coverage to PR
        id: jacoco
        uses: madrapps/[email protected]
        with:
          paths: ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml
          token: ${{ secrets.GITHUB_TOKEN }}
          min-coverage-overall: 40
          min-coverage-changed-files: 60

output screenshot

Example Project

For a working project refer to jacoco-playgound. Check out the PR's in the project to get an idea on how the report is shown on a pull request comment. For multi module gradle project, refer jacoco-android-playground

License

The scripts and documentation in this project are released under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].