Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
junit-to-ctrf
Advanced tools
Convert JUnit reports to CTRF reports
This package is useful if there isn't a CTRF reporter available for your test framework.
⭐ If you find this project useful, please consider following the CTRF organisation and giving this repository a star ⭐
It means a lot to us and helps us grow this open source library.
npx junit-to-ctrf path/to/junit.xml
-o
, --output
: Output directory and filename for the CTRF report. If not provided, defaults to ctrf/ctrf-report.json.
-t
, --tool
: Tool name to include in the CTRF report.
-u
, --use-suite-name
: Use suite name in the test name, defaults to true.
-e
, --env
: Environment properties to include in the CTRF report. Accepts multiple properties in the format KEY=value.
Convert a JUnit XML report to the default CTRF report location (ctrf/ctrf-report.json):
npx junit-to-ctrf path/to/junit.xml
Convert a JUnit XML report to a specified output file:
npx junit-to-ctrf path/to/junit.xml -o path/to/output/ctrf-report.json
Convert a JUnit XML report and include a tool name in the CTRF report:
npx junit-to-ctrf path/to/junit.xml -t ExampleTool
Convert a JUnit XML report and include environment properties in the CTRF report:
npx junit-to-ctrf path/to/junit.xml -e appName=MyApp buildName=MyBuild
See CTRF schema for possible environment properties
npx junit-to-ctrf path/to/junit.xml -u false
Combine all options in a single command:
npx junit-to-ctrf path/to/junit.xml -o path/to/output/ctrf-report.json -t ExampleTool -e appName=MyApp buildName=MyBuild
CTRF is a universal JSON test report schema that addresses the lack of a standardized format for JSON test reports.
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.
Language and Framework Agnostic: It provides a universal reporting schema that works seamlessly with any programming language and testing framework.
Facilitates Better Analysis: With a standardized format, programatically analyzing test outcomes across multiple platforms becomes more straightforward.
If you find this project useful, consider giving it a GitHub star ⭐ It means a lot to us.
FAQs
> Convert JUnit reports to CTRF reports
The npm package junit-to-ctrf receives a total of 5,061 weekly downloads. As such, junit-to-ctrf popularity was classified as popular.
We found that junit-to-ctrf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.