Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leobalter/qunit-reporter-stdout
A QUnit plugin to report the results on node's stdout.
https://github.com/leobalter/qunit-reporter-stdout
Last synced: 1 day ago
JSON representation
A QUnit plugin to report the results on node's stdout.
- Host: GitHub
- URL: https://github.com/leobalter/qunit-reporter-stdout
- Owner: leobalter
- License: other
- Created: 2015-03-24T18:34:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T15:04:59.000Z (almost 10 years ago)
- Last Synced: 2025-01-20T01:45:01.207Z (6 days ago)
- Language: JavaScript
- Homepage:
- Size: 219 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# qunit-reporter-stdout
A QUnit plugin to report the results on node's stdout.
[![Build Status](https://travis-ci.org/leobalter/qunit-reporter-stdout.svg?branch=master)](https://travis-ci.org/leobalter/qunit-reporter-stdout)
## Install
This module requires the original QUnit (on npm as `qunitjs`) in order to run.
```
npm install --save-dev qunitjs qunit-reporter-stdout
```## Usage
```js
var QUnit = require( "qunitjs" );
var stdout = require( "qunit-reporter-stdout" );stdout( QUnit[, options ] );
/* and then you write your tests */
...// and start running the tests
QUnit.load();
```This module will also disable QUnit.config.autorun in order to make it work properly on async code. Because of this, you need to run `QUnit.load()` after setting your tests to run them.
### Options
- `output`: none (default), `"minimal"` or `"verbose"`
- with no given value, the default output will list the modules and test names, followed by dots representing each passing assertion.
- `minimal` will omit the modules and tests names on the output.
- `verbose` will print a more detailed output.