Skip to content

Commit ca16054

Browse files
committed
- added npm-run-all so ALL tests are run regarless of failure in an earlier 'module'; - tweaked nyc run command so coverage from ALL test 'modules' is included
1 parent 3a9873d commit ca16054

File tree

2 files changed

+358
-10
lines changed

2 files changed

+358
-10
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
],
1111
"main": "wrestler.js",
1212
"scripts": {
13-
"test": "yarn test-nedb && yarn test-mongo && yarn test-pg",
13+
"test": "npm-run-all --sequential --continue-on-error test-nedb test-mongo test-pg",
1414
"test-nedb": "NODE_ENV=test nyc mocha --recursive --exit --slow 150",
15-
"test-mongo": "NODE_ENV=test MONGO_DB_URI=mongodb://localhost:27017/wrestler MONGO_DB_NAME=wrestler nyc mocha --recursive --exit --slow 150",
16-
"test-pg": "NODE_ENV=test PG_CONNECTION_STRING=postgresql://localhost:5432/wrestler nyc mocha --recursive --exit --slow 150",
15+
"test-mongo": "NODE_ENV=test MONGO_DB_URI=mongodb://localhost:27017/wrestler MONGO_DB_NAME=wrestler nyc --no-clean mocha --recursive --exit --slow 150",
16+
"test-pg": "NODE_ENV=test PG_CONNECTION_STRING=postgresql://localhost:5432/wrestler nyc --no-clean mocha --recursive --exit --slow 150",
1717
"coverage": "nyc report --reporter=text-lcov | coveralls",
1818
"start-mongo": "docker run --name wrestler -p 27017:27017 -d --rm mongo:latest",
1919
"stop-mongo": "docker container stop wrestler",
@@ -49,6 +49,7 @@
4949
"express": "^4.16.3",
5050
"mocha": "^8.2.1",
5151
"morgan": "^1.9.0",
52+
"npm-run-all": "^4.1.5",
5253
"nyc": "^15.1.0",
5354
"sinon": "9.2.4",
5455
"supertest": "6.1.3"

0 commit comments

Comments
 (0)