https://github.com/barelyhuman/node-reporter-minimal
A minimal test reporter for node:test
https://github.com/barelyhuman/node-reporter-minimal
node-test reporter reporters test
Last synced: about 1 month ago
JSON representation
A minimal test reporter for node:test
- Host: GitHub
- URL: https://github.com/barelyhuman/node-reporter-minimal
- Owner: barelyhuman
- License: mit
- Created: 2024-08-14T15:43:59.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-30T06:55:52.000Z (9 months ago)
- Last Synced: 2025-04-15T02:12:13.886Z (about 1 month ago)
- Topics: node-test, reporter, reporters, test
- Language: JavaScript
- Homepage:
- Size: 759 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# node-reporter-minimal
## Screenshot

## About
A simple test reporter for `node:test` (Node.js's test runner). The reporter
will prioritize logging errors and hides everything else while staying relevant.You get
- Per **root** test execution time
- Nested test errors and nesting path
- A decently colorised output> [!TIP]
>
> `reporter-minimal` is a lot more effective for running in CI systems where the
> passing tests don't mean much and the failed ones are what need to be
> re-validated. This saves you from missed log data when there's a limit to the
> size of the log on certain CI systems## Installation
```sh
npm add -D reporter-minimal
```## Usage
```sh
node --test-reporter=reporter-minimal --test-reporter-destination=stdout
```## Why should we use this ?
1. You have a large project where the reduced output could help with the size of
the logs in a CI environment and you don't use Github (Check out
[nearform/node-test-github-reporter](https://github.com/nearform/node-test-github-reporter))
2. You need a reporter that only logs errors and nothing else.## License
[MIT](/LICENSE)