Skip to content

Commit

Permalink
Add documentation of test.comment
Browse files Browse the repository at this point in the history
Tried to work the term `console.log` in there for people like me with `console.log` issues searching the docs for a solution.
  • Loading branch information
Sequoia committed Mar 25, 2015
1 parent 8835f51 commit 04bb03e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.markdown
Expand Up @@ -217,6 +217,11 @@ By default the TAP output goes to `console.log()`. You can pipe the output to
someplace else if you `htest.createStream().pipe()` to a destination stream on
the first tick.


## test.comment(message)

Print a message without breaking the tap output. (Useful when using e.g. `tap-colorize` where output is buffered & `console.log` will print in incorrect order vis-a-vis tap output.)

## test.only(name, cb)

Like `test(name, cb)` except if you use `.only` this is the only test case
Expand Down

0 comments on commit 04bb03e

Please sign in to comment.