Example project of gulp with mocha-only-detector Detect .only usage from mocha test suite If found, fail fast test suite on CI environment $ npm install $ npm test $ npm run test-ci https://github.com/auth0/mocha-only-detector