Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctrf-io/merge-ctrf
Merge multiple CTRF reports into a single report
https://github.com/ctrf-io/merge-ctrf
Last synced: about 2 months ago
JSON representation
Merge multiple CTRF reports into a single report
- Host: GitHub
- URL: https://github.com/ctrf-io/merge-ctrf
- Owner: ctrf-io
- License: mit
- Created: 2024-06-05T19:34:45.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-05T21:20:25.000Z (7 months ago)
- Last Synced: 2024-06-05T23:01:48.211Z (7 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Merge CTRF Reports
A CLI tool to merge CTRF reports into a single report.
This might be useful if you need a single report, but your chosen reporter generates multiple reports through design, parallelisation or otherwise.
⭐ **If you find this project useful, consider giving it a GitHub star** ⭐
It means a lot to us and helps us grow this open source library.
## We need your help
We believe CTRF can save **a lot** of time for engineers, a single data serialisation report, well structured, community driven and works with any framework. For over 30 years software engineers have used a de facto data serialisation report, you know the one! But we feel it’s time to modernise.
The only way we can grow CTRF is with your help and the support of the software engineering community.
## How can you help?
- Join and build with us! We are looking for [contributors](https://github.com/ctrf-io), get involved in this early stage project. All contributions are welcome.
- Give this repository a star ⭐⭐⭐⭐⭐⭐
- Follow the CTRF [GitHub organisation](https://github.com/ctrf-io)
- Clap for our [Medium articles](https://medium.com/@ma11hewthomas) (30 times each) 👏
- Share, share share! Discord, Reddit, Twitter, LinkedIn, Slack, Teams, whereever! - please share our [libraries](https://github.com/orgs/ctrf-io/repositories), our [homepage](https://www.ctrf.io/), our [Medium articles](https://medium.com/@ma11hewthomas)
- Maybe even write a blog about us!
- Try our [tools](https://github.com/orgs/ctrf-io/repositories)**Thank you so much!!**
A CLI tool to merge CTRF reports into a single report.
## Usage
To merge CTRF reports in a specified directory, use the following command:
```sh
npx merge-ctrf
```Replace `directory` with the path to the directory containing the CTRF reports you want to merge.
## Options
-o, --output `filename`: Output file name for the merged report. Default is ctrf-report.json.
```sh
npx merge-ctrf --output my-merged-report.json
```-d, --output-dir `directory`: Output directory for the merged report. Default is the same directory as the input reports.
```sh
npx merge-ctrf --output-dir /path/to/output
```-k, --keep-reports: Keep existing reports after merging. By default, the original reports will be deleted after merging.
```sh
npx merge-ctrf --keep-reports
```## Example
Merge all CTRF reports in the ctrf directory into a single report named merged-report.json and save it in the output directory, keeping the original reports:
```sh
npx merge-ctrf ctrf --output merged-report.json --output-dir output --keep-reports
```## What is CTRF?
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.
## Support Us
If you find this project useful, consider giving it a GitHub star ⭐ It means a lot to us.