Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfware/tap-yaml-summary
Output a summary in YAML format from a TAP stream
https://github.com/cfware/tap-yaml-summary
Last synced: 29 days ago
JSON representation
Output a summary in YAML format from a TAP stream
- Host: GitHub
- URL: https://github.com/cfware/tap-yaml-summary
- Owner: cfware
- License: other
- Created: 2019-11-27T23:33:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-13T15:31:50.000Z (over 2 years ago)
- Last Synced: 2024-04-23T18:14:11.731Z (8 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tap-yaml-summary [![NPM Version][npm-image]][npm-url]
Output a summary in YAML format from a TAP stream
## Target User
This produces intentionally bare bones summaries. The primary target is modules
with stable testing. If you are looking for a pretty output look elsewhere.## Command-line usage
```sh
tap test/*.js | tap-yaml-summary
```## API
This module works as a transform stream
```js
const Reporter = require('tap-yaml-summary');fs.createReadStream('saved-test-output.tap')
.pipe(new Reporter().on('error', () => process.exit(1)))
.pipe(process.stdout);
```The `error` event is emitted on completion if any assertion failed or a bailout occurred.
## Attribution
This was based on `tap-mocha-reporter`.
[npm-image]: https://img.shields.io/npm/v/tap-yaml-summary.svg
[npm-url]: https://npmjs.org/package/tap-yaml-summary