{"id":28541442,"url":"https://github.com/zestia/junit-results-toolkit","last_synced_at":"2026-05-27T14:01:27.420Z","repository":{"id":144843445,"uuid":"473739274","full_name":"zestia/junit-results-toolkit","owner":"zestia","description":"GitHub Action for parsing JUnit XML results","archived":false,"fork":false,"pushed_at":"2026-05-27T12:12:31.000Z","size":4608,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-05-27T13:18:53.278Z","etag":null,"topics":["actions","ci","github-actions","junit","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zestia.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-24T19:06:19.000Z","updated_at":"2025-12-03T15:22:14.000Z","dependencies_parsed_at":"2025-03-11T14:24:24.251Z","dependency_job_id":"e32417a3-490d-495f-a73d-8a8cf8c8a470","html_url":"https://github.com/zestia/junit-results-toolkit","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/zestia/junit-results-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fjunit-results-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fjunit-results-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fjunit-results-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fjunit-results-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zestia","download_url":"https://codeload.github.com/zestia/junit-results-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestia%2Fjunit-results-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33568859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["actions","ci","github-actions","junit","testing-tools"],"created_at":"2025-06-09T20:08:32.528Z","updated_at":"2026-05-27T14:01:27.382Z","avatar_url":"https://github.com/zestia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JUnit Results Toolkit\n\nGitHub action that parses JUnit XML reports, outputs a JSON summary and (optionally) generates an HTML report.\n\n## Usage\n\nTo parse test results in JUnit XML format add this action as a step:\n\n```yaml\njobs:\n  java-build:\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-java@v4\n        with:\n          java-version: 11\n\n      - name: Run unit tests\n        run: sbt test\n\n      - name: Parse Test Results\n        uses: zestia/junit-results-toolkit@v2\n        id: test-results\n        if: ${{ always() }}\n        with:\n          files: '**/TEST-*.xml'\n\n      - name: Echo Test Results\n        run: |\n          echo \"Test Results:\"\n          echo \"  Passed:  ${{ fromJson(steps.test-results.outputs.test.results).passed }}\"\n          echo \"  Failed:  ${{ fromJson(steps.test-results.outputs.test.results).failed }}\"\n          echo \"  Skipped: ${{ fromJson(steps.test-results.outputs.test.results).skipped }}\"\n```\n\n**Note:** it is important to add an `if` clause to ensure that the test results are always parsed.\n\n## Options\n\nfiles:\ndescription: Glob pattern to match JUnit files required: true upload-report:\ndescription: If true then upload reports in HTML \u0026 JSON formats required: false default: 'true' artifact-name:\ndescription: Name of the artifact to store reports in required: false retention-days:\ndescription: Number of days to retain report artifact for required: false\n\n| Name             | Description                                                                     | Default                               |\n| ---------------- | ------------------------------------------------------------------------------- | ------------------------------------- |\n| `files`          | Glob pattern to match JUnit XML files.                                          | _none_ (required)                     |\n| `upload-report`  | If `true` then an HTML report will be generated \u0026 uploaded to `$artifact-name`. | `true`                                |\n| `artifact-name`  | Name of the artifact to use when uploading HTML report.                         | `test-report-${context.job}`          |\n| `retention-days` | Number of days to retain HTML report artifact.                                  | Repository default (usually 90 days). |\n\n## Outputs\n\n### `test-results`\n\nSummary of test results in JSON format.\n\nFor example:\n\n```json\n{\n  \"name\": \"java-build\",\n  \"summary\": {\n    \"startTime\": 1648128401000,\n    \"duration\": 0.032,\n    \"tests\": 3,\n    \"passed\": 2,\n    \"failed\": 1,\n    \"skipped\": 0\n  },\n  \"suites\": [\n    {\n      \"name\": \"com.example.WidgetTest\",\n      \"startTime\": 1648128437000,\n      \"duration\": 0.011,\n      \"tests\": 1,\n      \"passed\": 1,\n      \"failed\": 0,\n      \"skipped\": 0\n    },\n    {\n      \"name\": \"com.example.GadgetTest\",\n      \"startTime\": 1648128437000,\n      \"duration\": 0.017,\n      \"tests\": 1,\n      \"passed\": 1,\n      \"failed\": 0,\n      \"skipped\": 0\n    },\n    {\n      \"name\": \"com.example.FlangeTest\",\n      \"startTime\": 1648128401000,\n      \"duration\": 0.004,\n      \"tests\": 1,\n      \"passed\": 0,\n      \"failed\": 1,\n      \"skipped\": 0\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzestia%2Fjunit-results-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzestia%2Fjunit-results-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzestia%2Fjunit-results-toolkit/lists"}