diff --git a/.gitignore b/.gitignore index c8a44ad..ff480e9 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,5 @@ node_modules .node_repl_history .coveralls.yml + +application/.nyc_output diff --git a/application/package.json b/application/package.json index c90d346..e5f9e3f 100644 --- a/application/package.json +++ b/application/package.json @@ -16,8 +16,8 @@ "test": "NODE_ENV=test npm run test:unit && npm run test:integration", "test:unit": "NODE_ENV=test mocha ./tests/unit_*.js", "test:integration": "NODE_ENV=test mocha ./tests/integration_*.js", - "coverage": "istanbul cover _mocha --include-all-sources ./tests/*.js", - "coverall": "npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", + "coverage": "nyc npm test", + "coverall": "npm run coverage && nyc report --reporter=text-lcov | coveralls && rm -rf ./.nyc_output", "countLOC": "sloc -f cli-table -k total,source,comment,empty -e node_modules\\|coverage ./", "countLOC:details": "sloc -f cli-table -d -e node_modules\\|coverage ./", "start:watch": "nodemon", @@ -44,12 +44,12 @@ "devDependencies": { "chai": "^4.0.0", "chai-as-promised": "^7.0.0", - "coveralls": "^2.13.0", + "coveralls": "^3.0.0", "eslint": "^4.0.0", "eslint-plugin-promise": "^3.4.0", - "istanbul": "^0.4.0", "mocha": "^3.4.0", "nodemon": "^1.11.0", + "nyc": "^11.6.0", "pre-commit": "^1.2.0", "sloc": "^0.2.0" },