This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
mocha-broken with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Only run previously broken mocha tests. Really useful when individual tests can take a long time.
First time you run tests, all tests are executed:
$ mocha-broken 1..2 ok 1 works fine not ok 2 should 500 on req Error: expected 500 "Internal Server Error", got 302 "Moved Temporarily" # tests 2 # pass 1 # fail 1
Next time you run tests, only the failing are executed:
$ mocha-broken 1..1 not ok 1 should 500 on req Error: expected 500 "Internal Server Error", got 302 "Moved Temporarily" # tests 1 # pass 0 # fail 1
Once all tests pass, all are executed again.
-- are passed to mocha:
$ mocha-broken -- --compilers coffee:coffee-script/register
$ npm install -g mocha-broken