Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitcoder/cucumber-json-merge
NodeJS CLI for merging Cucumber JSON test results
https://github.com/bitcoder/cucumber-json-merge
Last synced: 3 months ago
JSON representation
NodeJS CLI for merging Cucumber JSON test results
- Host: GitHub
- URL: https://github.com/bitcoder/cucumber-json-merge
- Owner: bitcoder
- License: apache-2.0
- Fork: true (drazisil/junit-merge)
- Created: 2019-07-26T08:36:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T10:05:22.000Z (over 2 years ago)
- Last Synced: 2024-09-19T08:38:08.257Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/cucumber-json-merge
- Size: 571 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cucumber-json-merge
[![NPM version](https://img.shields.io/npm/v/cucumber-json-merge.svg)](https://www.npmjs.com/package/cucumber-json-merge) [![License](https://img.shields.io/github/license/bitcoder/cucumber-json-merge.svg)](https://github.com/bitcoder/cucumber-json-merge/blob/master/LICENSE)
[![Coverage Status](https://coveralls.io/repos/github/bitcoder/cucumber-json-merge/badge.svg?branch=master)](https://coveralls.io/github/bitcoder/cucumber-json-merge?branch=master)
[![CI status](https://img.shields.io/github/workflow/status/bitcoder/cucumber-json-merge/CI-CD?label=CI&style=flat-square)](https://github.com/bitcoder/cucumber-json-merge/actions?query=workflow%3ACI-CD)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Known Vulnerabilities](https://snyk.io/test/github/bitcoder/cucumber-json-merge/badge.svg)](https://snyk.io/test/github/bitcoder/cucumber-json-merge)
[![NPM downloads](https://img.shields.io/npm/dw/cucumber-json-merge.svg)](https://www.npmjs.com/package/cucumber-json-merge)## NodeJS CLI for merging Cucumber JSON test results
This work was highly based on previous work from [junit-merge](https://github.com/drazisil/junit-merge)
### Installation
npm install -g cucumber-json-merge
Or just download the repository and include it in your `node_modules` directly.
### Usage
```
Usage: cucumber-json-merge [options] [report2.json...]Options:
-V, --version output the version number
-d, --dir merge all results in directory
-C, --createDir create the output directory if missing
-r, --recursive pass to recursively merge all results in directory
-o, --out file to output to (default: ./merged-test-results.json)
-h, --help output usage information
```### Advanced usage: including this as a library
In case you want to run this right from within nodeJS code, you should be able to include it as a library and perform the operations you want.
```javascript
cukemerge = require('cucumber-json-merge');files = cukemerge.listJsonFiles('.', false);
merged = cukemerge.mergeFiles(files);
console.log(merged);
```## Contributing
Feel free to submit issues and/or PRs! In lieu of a formal style guide,
please follow existing styles.## Contact
You can find me on [Twitter](https://twitter.com/darktelecom).
## LICENSE
[Apache 2.0](LICENSE).