Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixge/node-urun
The minimal test runner.
https://github.com/felixge/node-urun
Last synced: about 2 months ago
JSON representation
The minimal test runner.
- Host: GitHub
- URL: https://github.com/felixge/node-urun
- Owner: felixge
- Created: 2011-11-14T12:02:38.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-02-24T07:35:19.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T15:18:48.706Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 165 KB
- Stars: 31
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# urun
[![Build Status](https://secure.travis-ci.org/felixge/node-urun.png)](http://travis-ci.org/felixge/node-urun)
The minimal test runner.
## Why yet another test runner?
I wanted something simple, that just runs test files, shows progress, and
behaves like a good UNIX citizen. Now it exists.## Install
```
npm install urun
```## Usage
In order to execute all test-*.js files inside a given directory, simply do:
```js
require('urun')(__dirname);
```You now get a nice progress indication, as well as detailed output for each
test that fails. By default output is only printed for tests that fail. To enable
detailed output for all tests, including those passing, include verbose: true
in the list of options.```js
require('urun')(__dirname, { verbose: true });
```Another feature is specifying a regex for the files to run (default is
`/test-.+\.js$/`), for example:```js
require('urun')(__dirname, { include: /.+Test\.js$/ });
```## Reporter
```js
require('urun')(__dirname, { reporter: 'BashReporter' }); // default
require('urun')(__dirname, { reporter: 'BashTapReporter' }); // tap compliant output
```## License
This module is licensed under the MIT license.