whiteglove
v0.8.4
Published
Find the dirty tests making a mess of your test suite
Downloads
29
Maintainers
Readme
whiteglove
$ npm install -g whiteglove
Find the dirty tests making a mess of your test suite! whiteglove
helps you find tests that aren't cleaning up after themselves (failing to restore stubs, polluting the global namespace) and tests that are inadvertently relying on the mess.
Usage: whiteglove <command> [options]
Commands:
bisect <test> <directory> find leaky tests affecting a target test
iso <directory> find tests that fail in isolation
Options:
--runner, -r Command used to run the test suite [string] [default: "node"]
--patterns, -p Filename patterns matching your spec files
[array] [default: [".js",".jsx",".node"]]
--verbose Output a ridiculous amount of information [boolean]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
whiteglove bisect ./tests/foo.js ./tests
whiteglove iso ./tests
whiteglove bisect
Use whiteglove bisect
when you have a test that passes in isolation, but fails when run with the larger test suite. The bisect function will determine which tests are affecting your target test.
whiteglove iso
Use whiteglove iso
to find tests that are inadvertently relying other leaky tests in order to pass.