Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

whiteglove

0.8.4 • Public • Published

whiteglove

npm Version License Build Status Coverage Status

$ 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.

install

npm i whiteglove

Downloadsweekly downloads

16

version

0.8.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar