{"id":21471114,"url":"https://github.com/im-open/code-coverage-report-generator","last_synced_at":"2026-02-11T11:35:41.862Z","repository":{"id":43059624,"uuid":"388479959","full_name":"im-open/code-coverage-report-generator","owner":"im-open","description":"GitHub Action for ReportGenerator based on: https://danielpalme.github.io/ReportGenerator","archived":false,"fork":false,"pushed_at":"2025-02-11T19:21:28.000Z","size":214,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T09:31:10.530Z","etag":null,"topics":["code-coverage","code-coverage-html","code-coverage-summary","swat-team","test"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"danielpalme/ReportGenerator-GitHub-Action","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/im-open.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-22T13:53:59.000Z","updated_at":"2024-03-27T15:52:05.000Z","dependencies_parsed_at":"2025-03-17T10:15:17.063Z","dependency_job_id":null,"html_url":"https://github.com/im-open/code-coverage-report-generator","commit_stats":{"total_commits":67,"total_committers":5,"mean_commits":13.4,"dds":"0.23880597014925375","last_synced_commit":"d04ea3e319b056e3391e5f890e4f977ad2004e0b"},"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"purl":"pkg:github/im-open/code-coverage-report-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-open%2Fcode-coverage-report-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-open%2Fcode-coverage-report-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-open%2Fcode-coverage-report-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-open%2Fcode-coverage-report-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/im-open","download_url":"https://codeload.github.com/im-open/code-coverage-report-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-open%2Fcode-coverage-report-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-coverage","code-coverage-html","code-coverage-summary","swat-team","test"],"created_at":"2024-11-23T09:31:21.270Z","updated_at":"2026-02-11T11:35:41.846Z","avatar_url":"https://github.com/im-open.png","language":"JavaScript","readme":"# ReportGenerator\n\nThis action is a simplied version of [danielpalme/ReportGenerator-GitHub-Action].  It functions as a wrapper for the [dotnet-reportgenerator-globaltool].\n\n[ReportGenerator] converts coverage reports generated by OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.  \n\nThis action does not generate the code coverage reports itself, those must be created by a previous action.\n\n## Index \u003c!-- omit in toc --\u003e\n\n- [ReportGenerator](#reportgenerator)\n  - [Inputs](#inputs)\n  - [Outputs](#outputs)\n  - [Usage Examples](#usage-examples)\n  - [Breaking changes](#breaking-changes)\n    - [4.9.2 to v5.0.0](#492-to-v500)\n  - [Contributing](#contributing)\n    - [Incrementing the Version](#incrementing-the-version)\n    - [Source Code Changes](#source-code-changes)\n    - [Recompiling Manually](#recompiling-manually)\n    - [Updating the README.md](#updating-the-readmemd)\n  - [Code of Conduct](#code-of-conduct)\n  - [License](#license)\n\n## Inputs\n\n| Parameter         | Is Required | Default Value                                 | Description                                                                                                                                                                                                                                                                                                                                      |\n|-------------------|-------------|-----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `reports`         | false       | */**/coverage.opencover.xml                   | The coverage reports that should be parsed (separated by semicolon). Globbing is supported.                                                                                                                                                                                                                                                      |\n| `targetdir`       | false       | coverage-results                              | The directory where the generated report should be saved.                                                                                                                                                                                                                                                                                        |\n| `reporttypes`     | false       | Html;MarkdownSummary;                         | The output formats and scope (separated by semicolon)\u003cbr/\u003eValues: Badges, Clover, Cobertura, CsvSummary, Html, HtmlChart, HtmlInline, HtmlInline_AzurePipelines, HtmlInline_AzurePipelines_Dark, HtmlSummary, JsonSummary, Latex, LatexSummary, lcov, MarkdownSummary, MHtml, PngChart, SonarQube, TeamCitySummary, TextSummary, Xml, XmlSummary |\n| `assemblyfilters` | false       | +*                                            | Optional list of assemblies that should be included or excluded in the report. Exclusion filters take precedence over inclusion filters. Wildcards are allowed.                                                                                                                                                                                  |\n| `classfilters`    | false       | +*                                            | Optional list of classes that should be included or excluded in the report. Exclusion filters take precedence over inclusion filters. Wildcards are allowed.                                                                                                                                                                                     |\n| `filefilters`     | false       | +*                                            | Optional list of files that should be included or excluded in the report. Exclusion filters take precedence over inclusion filters. Wildcards are allowed.                                                                                                                                                                                       |\n| `verbosity`       | false       | Info                                          | The verbosity level of the log messages. \u003cbr/\u003eValues: Verbose, Info, Warning, Error, Off                                                                                                                                                                                                                                                         |\n| `title`           | false       | ''                                            | Optional title.                                                                                                                                                                                                                                                                                                                                  |\n| `tag`             | false       | ${{ github.run_number }}_${{ github.run_id }} | Optional tag or build version.                                                                                                                                                                                                                                                                                                                   |\n\n## Outputs\n\n| Output         | Description                                              |\n|----------------|----------------------------------------------------------|\n| `error-reason` | If there are failures, a brief description of the error. |\n\n## Usage Examples\n\n```yml\n- name: Setup .NET Core         # Required to execute ReportGenerator\n  uses: actions/setup-dotnet@v1\n  with:\n    dotnet-version: 8.x  # Needs to be 5.0 or higher\n\n- name: dotnet test with coverage\n  continue-on-error: true\n  run: dotnet test ${{ env.SOLUTION }} --no-restore --logger trx --configuration Release /property:CollectCoverage=True /property:CoverletOutputFormat=opencover\n\n- name: ReportGenerator\n  # You may also reference the major or major.minor version\n  uses: im-open/code-coverage-report-generator@v5.0.0\n  with:\n    reports: '*/**/coverage.opencover.xml'\n    targetdir: ${{ env.CODE_COVERAGE_DIR }}'\n    reporttypes: 'Html;MarkdownSummary'\n    assemblyfilters: '-xunit*;-Dapper;'\n    classfilters: '+*'\n    filefilters: '-Startup.cs;-Program.cs;-*.cshtml'\n    verbosity: 'Warning'\n    title: ${{ env.CODE_COVERAGE_REPORT_NAME }}\n    tag: '${{ github.workflow}}_${{ github.run_id }}'\n    \n\n- name: Upload coverage report artifact\n  uses: actions/upload-artifact@v4\n  with:\n    name: Coverage Report\n    path: ${{ env.CODE_COVERAGE_DIR }}\n\n- name: Create a PR comment from the summary file\n  uses: im-open/process-code-coverage-summary@v2\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    summary-file: '${{ env.CODE_COVERAGE_DIR }}/Summary.md'\n    create-pr-comment: true\n    create-status-check: false\n```\n\n## Breaking changes\n\n### 4.9.2 to v5.0.0\n\n- The `toolpath` input was removed since it was underutilized.  `v5` and above will check for the presence of the tool in the `./reportgeneratortool` directory, which was the default location in prior versions.  If that directory does not exist, the tool will be installed with `v4.8.12`.  If desired, a different version of the global tool can be installed in this location prior to this action but different versions of the report generator tool may or may not be compatible with this action's code.\n  - The `4.8.12` version of the tool is older but will continue to be used to preserve metrics in the generated reports that newer versions no longer produce.\n- The following inputs were not utilized and have been removed completely from the action starting with `v5`.\n  - `sourcedirs`\n  - `historydir`\n  - `plugins`\n  - `customSettings`\n- Previously, each version of the action had two tags, one with the `v` prefix and one without it.  There will only be one tag per version going forward and it includes the `v` prefix.\n\n## Contributing\n\nWhen creating PRs, please review the following guidelines:\n\n- [ ] The action code does not contain sensitive information.\n- [ ] At least one of the commit messages contains the appropriate `+semver:` keywords listed under [Incrementing the Version] for major and minor increments.\n- [ ] The action has been recompiled.  See [Recompiling Manually] for details.\n- [ ] The README.md has been updated with the latest version of the action.  See [Updating the README.md] for details.\n\n### Incrementing the Version\n\nThis repo uses [git-version-lite] in its workflows to examine commit messages to determine whether to perform a major, minor or patch increment on merge if [source code] changes have been made.  The following table provides the fragment that should be included in a commit message to active different increment strategies.\n\n| Increment Type | Commit Message Fragment                     |\n|----------------|---------------------------------------------|\n| major          | +semver:breaking                            |\n| major          | +semver:major                               |\n| minor          | +semver:feature                             |\n| minor          | +semver:minor                               |\n| patch          | *default increment type, no comment needed* |\n\n### Source Code Changes\n\nThe files and directories that are considered source code are listed in the `files-with-code` and `dirs-with-code` arguments in both the [build-and-review-pr] and [increment-version-on-merge] workflows.  \n\nIf a PR contains source code changes, the README.md should be updated with the latest action version and the action should be recompiled.  The [build-and-review-pr] workflow will ensure these steps are performed when they are required.  The workflow will provide instructions for completing these steps if the PR Author does not initially complete them.\n\nIf a PR consists solely of non-source code changes like changes to the `README.md` or workflows under `./.github/workflows`, version updates and recompiles do not need to be performed.\n\n### Recompiling Manually\n\nThis command utilizes [esbuild] to bundle the action and its dependencies into a single file located in the `dist` folder.  If changes are made to the action's [source code], the action must be recompiled by running the following command:\n\n```sh\n# Installs dependencies and bundles the code\nnpm run build\n```\n\n### Updating the README.md\n\nIf changes are made to the action's [source code], the [usage examples] section of this file should be updated with the next version of the action.  Each instance of this action should be updated.  This helps users know what the latest tag is without having to navigate to the Tags page of the repository.  See [Incrementing the Version] for details on how to determine what the next version will be or consult the first workflow run for the PR which will also calculate the next version.\n\n## Code of Conduct\n\nThis project has adopted the [im-open's Code of Conduct](https://github.com/im-open/.github/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nCopyright \u0026copy; 2024, Extend Health, LLC. Code released under the [MIT license](LICENSE).\n\n\u003c!-- Links --\u003e\n[Incrementing the Version]: #incrementing-the-version\n[Recompiling Manually]: #recompiling-manually\n[Updating the README.md]: #updating-the-readmemd\n[source code]: #source-code-changes\n[usage examples]: #usage-examples\n[build-and-review-pr]: ./.github/workflows/build-and-review-pr.yml\n[increment-version-on-merge]: ./.github/workflows/increment-version-on-merge.yml\n[esbuild]: https://esbuild.github.io/getting-started/#bundling-for-node\n[git-version-lite]: https://github.com/im-open/git-version-lite\n[dotnet-reportgenerator-globaltool]: https://www.nuget.org/packages/dotnet-reportgenerator-globaltool\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-open%2Fcode-coverage-report-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fim-open%2Fcode-coverage-report-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-open%2Fcode-coverage-report-generator/lists"}