[Pkg-javascript-commits] [node-tap] 53/186: ignore snapshots in coverage output, add npm run unit

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap.

commit 18791dd4975c92bc4ae8092963c0eaa77c10c5b2
Author: isaacs <i at izs.me>
Date:   Tue Oct 31 21:36:09 2017 -0700

    ignore snapshots in coverage output, add npm run unit
---
 bin/run.js   | 1 +
 package.json | 1 +
 2 files changed, 2 insertions(+)

diff --git a/bin/run.js b/bin/run.js
index a3c3542..6d87a3c 100755
--- a/bin/run.js
+++ b/bin/run.js
@@ -423,6 +423,7 @@ const respawnWithCoverage = options => {
   const args = [nycBin].concat(
     '--silent',
     '--cache=true',
+    '--exclude=**/tap-snapshots/*.js',
     options.nycArgs,
     '--',
     process.execArgv,
diff --git a/package.json b/package.json
index acbb05a..ffd3bad 100644
--- a/package.json
+++ b/package.json
@@ -50,6 +50,7 @@
   "repository": "https://github.com/tapjs/node-tap.git",
   "scripts": {
     "regen-fixtures": "node scripts/generate-test-test.js test/test/*.js",
+    "unit": "node bin/run.js unit/*.js --100",
     "test": "node bin/run.js test/*.* --coverage -t3600 -sfails",
     "smoke": "node bin/run.js --node-arg=test/test.js test/test/*.js -j2",
     "posttest": "standard lib test",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list