{"id":15790975,"url":"https://github.com/rohit-gohri/drone-junit","last_synced_at":"2026-02-04T04:35:22.492Z","repository":{"id":63102645,"uuid":"564955892","full_name":"rohit-gohri/drone-junit","owner":"rohit-gohri","description":"A drone plugin to display junit report summary in card view","archived":false,"fork":false,"pushed_at":"2023-09-22T08:54:48.000Z","size":134,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-05T22:41:23.955Z","etag":null,"topics":["adaptive-cards","ci","continuous-integration","drone","drone-plugin","junit","plugin","reporting"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohit-gohri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2022-11-11T22:55:38.000Z","updated_at":"2023-09-22T07:57:21.000Z","dependencies_parsed_at":"2023-09-22T21:56:24.609Z","dependency_job_id":null,"html_url":"https://github.com/rohit-gohri/drone-junit","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rohit-gohri/drone-junit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Fdrone-junit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Fdrone-junit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Fdrone-junit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Fdrone-junit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohit-gohri","download_url":"https://codeload.github.com/rohit-gohri/drone-junit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Fdrone-junit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263121363,"owners_count":23416982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["adaptive-cards","ci","continuous-integration","drone","drone-plugin","junit","plugin","reporting"],"created_at":"2024-10-04T22:41:22.269Z","updated_at":"2026-02-04T04:35:22.457Z","avatar_url":"https://github.com/rohit-gohri.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drone Junit\n\n[![Release](https://github.com/rohit-gohri/drone-junit/actions/workflows/release.yaml/badge.svg)](https://github.com/rohit-gohri/drone-junit/actions/workflows/release.yaml)\n[![Test Build](https://cloud.drone.io/api/badges/rohit-gohri/drone-junit/status.svg?ref=refs/heads/main)](https://cloud.drone.io/rohit-gohri/drone-junit)\n\nA Drone plugin to parse Junit test reports and create tests summary using [plugin cards](https://docs.drone.io/plugins/adaptive_cards/).\n\n![Preview of junit report](./docs/image.jpg)\n\n## Usage\n\nThe following settings changes this plugin's behavior.\n\n* paths (required) - Pass a glob pattern to match all xml junit files\n* report_name (optional) - Customize the name of the report\n* total (optional, default true) - Combine and show sum of all reports\n\nBelow is an example `.drone.yml` that uses this plugin.\n\n```yaml\nkind: pipeline\nname: default\n\nsteps:\n\n# Run your tests here and generate report\n- name: tests\n  image: golang\n  commands:\n    - go install github.com/jstemmer/go-junit-report/v2@latest\n    - go test -v 2\u003e\u00261 ./... | go-junit-report -set-exit-code \u003e report.xml\n\n- name: junit-reports\n  image: ghcr.io/rohit-gohri/drone-junit:v0\n  settings:\n    paths: report.xml\n  when:\n    status: [\n      'success',\n      'failure',\n    ]\n```\n\n### GHCR\n\nImages are published on Github Container Registry - \u003chttps://github.com/rohit-gohri/drone-junit/pkgs/container/drone-junit\u003e\n\n```yaml\n- name: junit-reports\n  image: ghcr.io/rohit-gohri/drone-junit:v0\n  settings:\n    paths: report.xml\n  when:\n    status: [\n      'success',\n      'failure',\n    ]\n```\n\n### Docker Hub\n\nImages are also published on Docker Hub - \u003chttps://hub.docker.com/r/boringdownload/drone-junit\u003e\n\n```yaml\n- name: junit-reports\n  image: boringdownload/drone-junit:v0\n  settings:\n    paths: report.xml\n```\n\n## Development\n\n### Building\n\nBuild the plugin binary:\n\n```text\nscripts/build.sh\n```\n\nBuild the plugin image:\n\n```text\ndocker build -t boringdownload/drone-junit -f docker/Dockerfile .\n```\n\n### Testing\n\nExecute the plugin from your current working directory:\n\n```text\ndocker run --rm -e PLUGIN_PATHS=\"report.xml\" -e PLUGIN_REPORT_NAME=\"drone-junit\" \\\n  -e DRONE_COMMIT_SHA=8f51ad7884c5eb69c11d260a31da7a745e6b78e2 \\\n  -e DRONE_COMMIT_BRANCH=master \\\n  -e DRONE_BUILD_NUMBER=43 \\\n  -e DRONE_BUILD_STATUS=success \\\n  -w /drone/src \\\n  -v $(pwd):/drone/src \\\n  boringdownload/drone-junit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit-gohri%2Fdrone-junit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohit-gohri%2Fdrone-junit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit-gohri%2Fdrone-junit/lists"}