From b2aac2f62c27c76370e8acc0174afd76df1d0248 Mon Sep 17 00:00:00 2001 From: sttk Date: Thu, 6 Jun 2019 20:05:46 +0900 Subject: [PATCH] Update: Switch coverage tool to nyc and coveralls --- .eslintignore | 1 + .gitignore | 2 ++ package.json | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index a843dc4..da6d2d7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ test/fixtures +coverage/ diff --git a/.gitignore b/.gitignore index 23362a4..d9b74b7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ lib-cov # Coverage directory used by tools like istanbul coverage +.nyc_output + # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt diff --git a/package.json b/package.json index c84c921..4ae04ab 100644 --- a/package.json +++ b/package.json @@ -21,19 +21,19 @@ "lint": "eslint .", "pretest": "rm -rf tmp/ && npm run lint", "test": "mocha --async-only", - "cover": "istanbul cover _mocha --report lcovonly", - "coveralls": "npm run cover && istanbul-coveralls" + "cover": "nyc --reporter=lcov --reporter=text-summary npm test", + "coveralls": "nyc --reporter=text-lcov npm test | coveralls" }, "dependencies": {}, "devDependencies": { + "coveralls": "github:phated/node-coveralls#2.x", "eslint": "^2.13.0", "eslint-config-gulp": "^3.0.1", "expect": "^1.20.2", - "istanbul": "^0.4.3", - "istanbul-coveralls": "^1.0.3", "mocha": "^3.5.3", "parse-node-version": "^1.0.0", "rechoir": "^0.7.0", + "nyc": "^10.3.2", "shelljs": "0.7.5" }, "keywords": [