{"id":20137080,"url":"https://github.com/ctrf-io/junit-to-ctrf","last_synced_at":"2025-09-21T06:32:24.994Z","repository":{"id":244462983,"uuid":"814781740","full_name":"ctrf-io/junit-to-ctrf","owner":"ctrf-io","description":"Convert JUnit reports to CTRF","archived":false,"fork":false,"pushed_at":"2025-08-01T23:41:13.000Z","size":77,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T01:22:31.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ctrf-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2024-06-13T17:35:14.000Z","updated_at":"2025-07-02T21:50:11.000Z","dependencies_parsed_at":"2024-06-14T21:57:53.748Z","dependency_job_id":"7b03e7e3-ba53-4366-af58-70f8dabadab0","html_url":"https://github.com/ctrf-io/junit-to-ctrf","commit_stats":null,"previous_names":["ctrf-io/junit-to-ctrf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctrf-io/junit-to-ctrf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjunit-to-ctrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjunit-to-ctrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjunit-to-ctrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjunit-to-ctrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrf-io","download_url":"https://codeload.github.com/ctrf-io/junit-to-ctrf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjunit-to-ctrf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276204814,"owners_count":25602738,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"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":[],"created_at":"2024-11-13T21:25:06.028Z","updated_at":"2025-09-21T06:32:24.988Z","avatar_url":"https://github.com/ctrf-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert JUnit XML to CTRF JSON\n\n\u003e Convert JUnit reports to CTRF reports\n\nThis package is useful if there isn't a CTRF reporter available for your test framework.\n\n\u003cdiv align=\"center\"\u003e\n\u003cdiv style=\"padding: 1.5rem; border-radius: 8px; margin: 1rem 0; border: 1px solid #30363d;\"\u003e\n\u003cspan style=\"font-size: 23px;\"\u003e💚\u003c/span\u003e\n\u003ch3 style=\"margin: 1rem 0;\"\u003eCTRF tooling is open source and free to use\u003c/h3\u003e\n\u003cp style=\"font-size: 16px;\"\u003eYou can support the project with a follow and a star\u003c/p\u003e\n\n\u003cdiv style=\"margin-top: 1.5rem;\"\u003e\n\u003ca href=\"https://github.com/ctrf-io/junit-to-ctrf\"\u003e\n\u003cimg src=\"https://img.shields.io/github/stars/ctrf-io/junit-to-ctrf?style=for-the-badge\u0026color=2ea043\" alt=\"GitHub stars\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/ctrf-io\"\u003e\n\u003cimg src=\"https://img.shields.io/github/followers/ctrf-io?style=for-the-badge\u0026color=2ea043\" alt=\"GitHub followers\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\n\u003cp style=\"font-size: 14px; margin: 1rem 0;\"\u003e\nMaintained by \u003ca href=\"https://github.com/ma11hewthomas\"\u003eMatthew Thomas\u003c/a\u003e\u003cbr/\u003e\nContributions are very welcome! \u003cbr/\u003e\nExplore more \u003ca href=\"https://www.ctrf.io/integrations\"\u003eintegrations\u003c/a\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## Usage\n\n```sh\nnpx junit-to-ctrf path/to/junit.xml\n```\n\nor glob pattern:\n\n```sh\nnpx junit-to-ctrf \"test-results/**/*.xml\"\n```\n\n## Options\n\n`-o`, `--output` \u003coutput\u003e: Output directory and filename for the CTRF report. If not provided, defaults to ctrf/ctrf-report.json.\n\n`-t`, `--tool` \u003ctoolName\u003e: Tool name to include in the CTRF report.\n\n`-u`, `--use-suite-name` \u003cuseSuiteName\u003e: Use suite name in the test name, defaults to true.\n\n`-e`, `--env` \u003cenvProperties\u003e: Environment properties to include in the CTRF report. Accepts multiple properties in the format KEY=value.\n\n\n## Examples\n\nConvert a JUnit XML report to the default CTRF report location (ctrf/ctrf-report.json):\n\n```sh\nnpx junit-to-ctrf \"test-results/**/*.xml\"\n```\n\n### Specify Output File\n\nConvert a JUnit XML report to a specified output file:\n\n```sh\nnpx junit-to-ctrf \"test-results/**/*.xml\" -o ctrf/combined-report.json\n```\n\n### Include Tool Name\n\nConvert a JUnit XML report and include a tool name in the CTRF report:\n\n```sh\nnpx junit-to-ctrf path/to/junit.xml -t ExampleTool\n```\n\n### Include Environment Properties\n\nConvert a JUnit XML report and include environment properties in the CTRF report:\n\n```sh\nnpx junit-to-ctrf path/to/junit.xml -e appName=MyApp buildName=MyBuild\n```\n\nSee [CTRF schema](https://www.ctrf.io/docs/schema/environment) for possible environment properties\n\n### Exclude Suite Name\n\n```sh\nnpx junit-to-ctrf path/to/junit.xml -u false\n```\n\n### Full Command\n\nCombine all options in a single command:\n\n```sh\nnpx junit-to-ctrf path/to/junit.xml -o path/to/output/ctrf-report.json -t ExampleTool -e appName=MyApp buildName=MyBuild\n```\n\n## What is CTRF?\n\nCTRF is a universal JSON test report schema that addresses the lack of a standardized format for JSON test reports.\n\n**Consistency Across Tools:** Different testing tools and frameworks often produce reports in varied formats. CTRF ensures a uniform structure, making it easier to understand and compare reports, regardless of the testing tool used.\n\n**Language and Framework Agnostic:** It provides a universal reporting schema that works seamlessly with any programming language and testing framework.\n\n**Facilitates Better Analysis:** With a standardized format, programatically analyzing test outcomes across multiple platforms becomes more straightforward.\n\n## Support Us\n\nIf you find this project useful, consider giving it a GitHub star ⭐ It means a lot to us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrf-io%2Fjunit-to-ctrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrf-io%2Fjunit-to-ctrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrf-io%2Fjunit-to-ctrf/lists"}