diff --git a/package.json b/package.json index af8e06fc..744bb7ae 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,8 @@ "pretest": "npm run lint", "test": "npm run tests-only", "posttest": "aud --production", - "tests-only": "nyc tap test/*.js" + "tests-only": "nyc tap 'test/*.js'", + "test:example": "find example -name '*.js' | grep -v fail | grep -v static | xargs tap" }, "testling": { "files": "test/browser/*.js", diff --git a/test/no_only.js b/test/no_only.js index 693ab110..d0f126ba 100644 --- a/test/no_only.js +++ b/test/no_only.js @@ -6,7 +6,7 @@ var exec = require('child_process').exec; var stripFullStack = require('./common').stripFullStack; -var tapeBin = path.join(__dirname, '../bin/tape'); +var tapeBin = 'node ' + path.join(__dirname, '../bin/tape'); var expectedExitCodeFailure = (/^0\.10\.\d+$/).test(process.versions.node); var expectedStackTraceBug = (/^3\.[012]\.\d+$/).test(process.versions.node); // https://github.com/nodejs/node/issues/2581