Skip to content

Commit fb5995a

Browse files
authored
Merge pull request #7 from sketchdev/major-coverage-fix
Better test runs and code coverage reporting
2 parents 3a9873d + ca16054 commit fb5995a

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)