npm install -g earltape
The command works exactly the same as the regular
tape runner, just do
earltape test/*.eg to run your tests. You can pipe
earltape into any standard tap reporter as you would expect.
To write your tests,
earltape as the index file contains macros.
Instead of requiring
tape, you can use the
require-macro: earltape -> test test "timing test": @plan(2) @equal(typeof(Date.now), 'function') start = Date.now() setTimeout(cb, 100) where cb = -> @equal(Date.now() - start, 100)