tape-dots

Dot reporter for tape

npm install tape-dots
1 downloads in the last week
6 downloads in the last month

tape-dots

Dot reporter for tape

Repository: https://github.com/mantoni/tape-dots


Motivation

If you have a lot of tape test cases, this little add-on shortens your console output. It prints a . for each "ok" line and an F for each "not ok" line. Failures are recorded and printed below the dots report.

$ tape-dots test/*.js
TAP version 13
# .............................................F..
# throws if 42
not ok 42 throws
  ---
    operator: throws
    expected:
      "/Ouch/"
    actual:
      {"message":"Oh noes"}
    at: assertThrows (/some/path/to/test.js:29:10)
  ...
1..48
# tests 48 | pass 47 | fail 1

Usage

Install with npm:

$ npm install tape-dots

Run tape tests through tape-dots:

$ tape-dots test/*.js

Works great in the browser with consolify:

$ consolify -o tests.html tape-dots ./test/*.js

Install with npm

For browsers

Either include index.js in your web page or use Browserify.

Development

Here is what you need:

  • npm install will install the dev dependencies
  • make lint the code with JSLint and run all unit tests in node

License

MIT

npm loves you