README
tests-buster
fix tests / the wicked way :smiling_imp:
the tests-buster will crawl in your test files, wisely analyze your tests and cut out every broken one. now your code is ready to take down the pipeline. :checkered_flag:
Install:
npm i -g tests-buster
Run:
In your root project directory, run:
tests-buster bust --dry-run
to see how the tests-buster can help you. When you are ready, run
tests-buster bust
See the options below for customized configuration.
Try an Example
git clone https://github.com/efrat19/tests-buster.git && cd tests-buster/example && npm i
run npm run test
. some tests will fail. now run tests-buster bust
to clean the file, and again npm run test
to observe the change.
Cli Options
Usage: tests-buster bust [OPTIONS]
A cli tool for broken tests cleaning
Options:
-p, --path The project root directory - where your package.json is. Defaults to current location.
-P, --pattern The test files search pattern. Accepts a js regex, defaults to ".spec.js