urun
The minimal test runner.
Last updated 6 years ago by felixge .
Repository · Original npm · Tarball · package.json
$ cnpm install urun 
SYNC missed versions from official npm registry.

urun

Build Status

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:

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.

require('urun')(__dirname, { verbose: true });

Another feature is specifying a regex for the files to run (default is /test-.+\.js$/), for example:

require('urun')(__dirname, { include: /.+Test\.js$/ });

Reporter

require('urun')(__dirname, { reporter: 'BashReporter' }); // default
require('urun')(__dirname, { reporter: 'BashTapReporter' }); // tap compliant output

License

This module is licensed under the MIT license.

Current Tags

  • 0.0.8                                ...           latest (6 years ago)

8 Versions

  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           7 years ago
  • 0.0.6                                ...           8 years ago
  • 0.0.5                                ...           8 years ago
  • 0.0.4                                ...           9 years ago
  • 0.0.3                                ...           9 years ago
  • 0.0.2                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 10
This Month 12
Last Day 8
Last Week 2
Last Month 26
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |