Generate test coverage via electron with tape-istanbul
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
node_modules/
|
||||
coverage/
|
||||
coverage.json
|
||||
tmp/
|
||||
npm-debug.log*
|
||||
.DS_Store
|
||||
|
||||
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user