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

dot-only-hunter

dot-only-hunter

Build Status npm npm Downloads

Hunt down .onlys before it's too late.

Works with mocha, tape and any tests written in BDD, TDD and QUnit style.

Install

$ npm install --save-dev dot-only-hunter

Usage

$ dot-only-hunter -h
Usage: dot-only-hunter [test_dir][options]
  -h, --help            output usage information
  -p, --prey <list>     additional commma-separated list of names to hunt preciding .only
 
$ dot-only-hunter
dot-only-hunter: test: No such file or directory
 
$ dot-only-hunter tests
Hunting inside 'tests' for tests with `.only`...
tests/test.js:describe.only('jello-eater', function () {
Whoops! Found `.only` in your tests.
 
$ rm tests/test.js
Hunting inside 'tests' for tests with `.only`...
All good!

License

MIT © David da Silva