{"id":18459172,"url":"https://github.com/smartbear/one-report-publisher","last_synced_at":"2026-01-28T15:08:14.783Z","repository":{"id":40945219,"uuid":"451907588","full_name":"SmartBear/one-report-publisher","owner":"SmartBear","description":"Publish Test Results to SmartBear OneReport","archived":false,"fork":false,"pushed_at":"2024-11-22T15:36:18.000Z","size":1067,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-12-25T06:12:48.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartBear.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-01-25T14:22:30.000Z","updated_at":"2022-03-17T11:59:34.000Z","dependencies_parsed_at":"2023-02-18T14:01:47.744Z","dependency_job_id":null,"html_url":"https://github.com/SmartBear/one-report-publisher","commit_stats":{"total_commits":158,"total_committers":6,"mean_commits":"26.333333333333332","dds":"0.37341772151898733","last_synced_commit":"2cb0ecb7b3d5f72c71acbeba7fcc214a669e6f6f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fone-report-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fone-report-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fone-report-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fone-report-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartBear","download_url":"https://codeload.github.com/SmartBear/one-report-publisher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239149117,"owners_count":19589921,"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":[],"created_at":"2024-11-06T08:22:07.318Z","updated_at":"2025-10-31T07:32:14.018Z","avatar_url":"https://github.com/SmartBear.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Run Tests](https://github.com/SmartBear/one-report-publisher/actions/workflows/test.yaml/badge.svg)](https://github.com/SmartBear/one-report-publisher/actions/workflows/test.yaml)\n\n# OneReport Publisher\n\nThis is a tool that publishes test results (test cycles) to SmartBear OneReport. It is intended to be used in Continuous Integration workflows.\n\nThe tool supports the following file formats:\n\n- JUnit XML\n- Cucumber JSON\n- Cucumber Messages\n- Zip files (containing any of the above)\n\nIf the publisher is executed on a [supported CI server](https://github.com/cucumber/ci-environment#supported-ci-servers),\nit will also send the following git metadata along with the test results:\n\n- Repository URL\n- Commit SHA\n- Current Branch\n- Current Tag (if available)\n\n## GitHub Actions\n\nAdd a step _after_ all tests have run. The `if: ${{ always() }}` ensures results are published even if a previous test\nstep failed.\n\n```yml\n- name: 'Publish to OneReport'\n  if: ${{ always() }}\n  uses: smartbear/one-report-publisher@v0.8.0\n  with:\n    # Can be omitted if ONE_REPORT_PROJECT_ID is defined\n    project-id: F5222E06-BA05-4C82-949A-2FE537B6F59F\n    # Can be omitted if ONE_REPORT_REFRESH_TOKEN is defined\n    refresh-token: ${{ secrets.ONE_REPORT_REFRESH_TOKEN }}\n    # Can be omitted if ONE_REPORT_URL is defined\n    url: ${{ env.ONE_REPORT_URL }}\n    reports: ./reports/**/*.{xml,json,ndjson,zip}\n```\n\nSee [action.yml](./action.yml) for a full reference of available input options.\n\n## Command Line Reference\n\nThe command-line tool can be used in any CI pipeline that has the `npx` command available (it needs to have Node.js installed).\n\n```\nnpx @smartbear/one-report-publisher@v0.8.0 --help\n\nUsage: one-report-publisher [options]\n\nOptions:\n  -u, --url \u003curl\u003e                      OneReport URL. Defaults to $ONE_REPORT_URL\n  -p, --project-id \u003cid\u003e                OneReport project id. Defaults to $ONE_REPORT_PROJECT_ID\n  -t, --refresh-token \u003crefresh-token\u003e  OneReport refresh-token. Defaults to $ONE_REPORT_REFRESH_TOKEN\n  -r, --reports \u003cglob...\u003e              Glob to the files to publish\n  -m, --max-time \u003cseconds\u003e             Max time for each request\n  -i, --ignore-error                   Exit with 0 even if a timeout or error occurred\n  --no-zip                             Do not zip non .zip files\n  -h, --help                           display help for command\n```\n\nExample:\n\n```\nnpx @smartbear/one-report-publisher@0.8.0 \\\n  --project-id F5222E06-BA05-4C82-949A-2FE537B6F59F \\\n  --refresh-token ${ONE_REPORT_REFRESH_TOKEN} \\\n  --reports ./reports/**/*.{xml,json,ndjson,zip}\n```\n\n## CircleCI\n\nAdd a step _after_ all tests have run. You have to make sure the command is running in a docker image that has Node.js\ninstalled (for example [cimg/node](https://circleci.com/developer/images/image/cimg/node)).\n\n```yml\n- run:\n    name: Publish test results to OneReport\n    command: |\n      npx @smartbear/one-report-publisher@0.8.0 \\\n        --project-id F5222E06-BA05-4C82-949A-2FE537B6F59F \\\n        --refresh-token ${ONE_REPORT_REFRESH_TOKEN} \\\n        --reports ./reports/**/*.{xml,json,ndjson,zip}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartbear%2Fone-report-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartbear%2Fone-report-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartbear%2Fone-report-publisher/lists"}