diff --git a/.gitignore b/.gitignore index 823b3d1..7582006 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules/ coverage/ +coverage.json tmp/ npm-debug.log* .DS_Store diff --git a/package.json b/package.json index 957832c..4a90e6c 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,10 @@ "scripts": { "deps": "dependency-check . && dependency-check . --extra --no-dev -i xhr", "test:electron": "browserify tests/**/*.js -t es2020 | tape-run", + "test:cov": "browserify tests/**/*.js -t es2020 -p tape-istanbul/plugin | tape-run | tape-istanbul && istanbul report", "test:server": "standard && npm run deps && NODE_ENV=test node tests/server/*", - "test:server:cov": "standard && npm run deps && NODE_ENV=test istanbul cover tests/server/*", "test:browser": "standard && npm run deps && NODE_ENV=test zuul tests/browser/*", "test:browser:local": "standard && npm run deps && NODE_ENV=test zuul --local 8080 -- tests/browser/*", - "test:cov": "npm run test:server:cov", "preversion": "if [ ! -z $SKIP_TEST ]; then npm run test:browser; fi", "test": "npm run test:server" }, @@ -48,6 +47,7 @@ "standard": "^7.1.0", "tachyons": "^4.0.0-beta.19", "tape": "^4.5.1", + "tape-istanbul": "~1.0.2", "tape-run": "~2.1.4", "yo-yoify": "^3.1.0", "zuul": "toddself/zuul"