node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »



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]
  bisect <test> <directory>  find leaky tests affecting a target test
  iso <directory>            find tests that fail in isolation
  --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]
  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.