{"id":29946101,"url":"https://github.com/wingify/testng-to-ctrf","last_synced_at":"2026-02-28T14:31:52.598Z","repository":{"id":281156963,"uuid":"944369629","full_name":"wingify/testng-to-ctrf","owner":"wingify","description":"Convert TestNG Results XML to CTRF JSON","archived":false,"fork":false,"pushed_at":"2025-03-07T09:38:57.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-18T07:21:20.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/testng-to-ctrf","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/wingify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-03-07T08:24:33.000Z","updated_at":"2025-03-07T09:42:31.000Z","dependencies_parsed_at":"2025-03-07T09:45:18.210Z","dependency_job_id":"bb4ddeb5-bbde-41e7-8f74-67d583b4aef4","html_url":"https://github.com/wingify/testng-to-ctrf","commit_stats":null,"previous_names":["wingify/testng-to-ctrf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wingify/testng-to-ctrf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Ftestng-to-ctrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Ftestng-to-ctrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Ftestng-to-ctrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Ftestng-to-ctrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wingify","download_url":"https://codeload.github.com/wingify/testng-to-ctrf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Ftestng-to-ctrf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268496076,"owners_count":24259411,"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-08-03T02:00:12.545Z","response_time":2577,"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":"2025-08-03T05:12:49.237Z","updated_at":"2026-02-28T14:31:52.579Z","avatar_url":"https://github.com/wingify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert TestNG Results XML to CTRF JSON\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003e Convert TestNG results XML to (CTRF reports)[https://ctrf.io/docs/intro]\n\nThis package is useful if there isn't a CTRF reporter available for your test framework.\n\n## Acknowledgments \u0026 Attribution\n\nThis project is a fork of [junit-to-ctrf](https://github.com/ctrf-io/junit-to-ctrf) by Matthew Thomas. The TestNG adaptation was developed by Sahil Goyal while maintaining the same high standards and principles of the original project.\n\nFor a complete list of third-party libraries and their licenses used in this project, please see our [Third Party Attributions](third-party-attributions.txt) file.\n\n## Usage\n\n```sh\nnpx testng-to-ctrf path/to/testng-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`-e`, `--env` \u003cenvProperties\u003e: Environment properties to include in the CTRF report. Accepts multiple properties in the format KEY=value.\n\n## Examples\n\nConvert a TestNG XML report to the default CTRF report location (ctrf/ctrf-report.json):\n\n```sh\nnpx testng-to-ctrf path/to/testng-results.xml\n```\n\n### Specify Output File\n\nConvert a Testng XML report to a specified output file:\n\n```sh\nnpx testng-to-ctrf path/to/testng-results.xml -o path/to/output/ctrf-report.json\n```\n\n### Include Tool Name\n\nConvert a Testng XML report and include a tool name in the CTRF report:\n\n```sh\nnpx testng-to-ctrf path/to/testng-results.xml -t ExampleTool\n```\n\n### Include Environment Properties\n\nConvert a Testng XML report and include environment properties in the CTRF report:\n\n```sh\nnpx testng-to-ctrf path/to/testng-results.xml -e appName=MyApp buildName=MyBuild\n```\n\nSee [CTRF schema](https://www.ctrf.io/docs/schema/environment) for possible environment properties\n\n### Full Command\n\nCombine all options in a single command:\n\n```sh\ntestng-to-ctrf path/to/testng-results.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## Contributing\n\nWe welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details.\n\n### Development Setup\n\n1. Clone the repository\n2. Install dependencies: `yarn install`\n3. Build the project: `yarn build`\n\n## Changelog\n\n### v1.0.0\n- Initial release\n- Basic TestNG XML to CTRF JSON conversion\n- Command-line interface with output and environment options\n\n## Support\n\n- Create a [GitHub Issue](../../issues) for bug reports and feature requests\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingify%2Ftestng-to-ctrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwingify%2Ftestng-to-ctrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingify%2Ftestng-to-ctrf/lists"}