Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Dot reporter for tape
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin Initial commit
test Initial commit
.gitignore Initial commit
LICENSE Initial commit
Makefile
README.md Removed misplaced heading
autolint.js Initial commit
index.js Initial commit
package.json Renamed repository and fixed files list in package.json

README.md

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

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

Something went wrong with that request. Please try again.