From 79f368d35ac1e2fe3f8afcfc5eeea5231ebc47f6 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 25 Sep 2015 16:22:19 -0400 Subject: [PATCH] generate html and lcov coverage reports --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f1ad39b..8ed39a7 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "pretest": "npm run build", "test": "mocha", "pretest-coverage": "npm run build", - "test-coverage": "istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/test.js", - "posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist", - "ci": "npm run test-coverage && codecov < coverage/coverage-remapped.json", + "test-coverage": "rm -rf coverage/* && istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/test.js", + "posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.lcov -t lcovonly -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped -t html -b dist", + "ci": "npm run test-coverage && codecov < coverage/coverage-remapped.lcov", "build": "gobble build -f dist", "prepublish": "npm test", "lint": "eslint src"