npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

mocha-broken

1.0.0 • Public • Published

mocha-broken

Only run previously broken mocha tests. Really useful when individual tests can take a long time.

Example

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.

Passing arguments to mocha

Arguments after -- are passed to mocha:

$ mocha-broken -- --compilers coffee:coffee-script/register

Installation

$ npm install -g mocha-broken

License

MIT

Keywords

none

install

npm i mocha-broken

Downloadsweekly downloads

42

version

1.0.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability