Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mocha test runner - option to rerun only failed tests from previous run

Is there an option in Javascript's Mocha test runner to only run tests which failed on the previous run? Is there an easy way to implement that if not? There are a lot of words written about retrying flaky tests but thats not what I want. I want to run tests, see failures, make updates to the code, then automatically run only the previous failed tests to see if my changes fixed them

like image 747
Akron Avatar asked Nov 08 '22 10:11

Akron


1 Answers

Found this https://github.com/segmentio/mocha-broken but integration into WebStorm wasn't streamlined enough so dropped it...

Might fit your needs though, worth a try

like image 91
Or Gal Avatar answered Nov 14 '22 21:11

Or Gal