Add fast-test and fast-cover npm scripts

Add alternate test and coverage scripts that skips tests that are slow.
This commit is contained in:
Hornwitser committed 2019-08-24 11:25:40 +02:00
1 parent 5a9e2a8825
commit fb2519cb50
3 files changed
+5

No files matched your search

+2
View File
@@ -6,7 +6,9 @@
"main": "master.js",
"scripts": {
"test": "mocha --exit --check-leaks -R spec \"./{,!(node_modules)/**/}*.spec.js\" || true",
"fast-test": "FAST_TEST=y mocha --check-leaks --exit -R spec \"./{,!(node_modules)/**/}*.spec.js\" || true",
"cover": "nyc npm run-script test",
"fast-cover": "nyc npm run-script fast-test",
"ci-cover": "nyc --reporter=lcovonly npm run-script test",
"start": "echo Run node client.js start [instance] to start slaves && node master.js",
"install": "node lib/npmPostinstall.js",