Skip to content

Commit

Permalink
Move to nyc for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed May 23, 2017
1 parent 3dd11a1 commit bf2875d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 25 deletions.
8 changes: 7 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"presets": [ "es2015" ]
"presets": [ "es2015" ],
"env": {
"coverage": {
"sourceMaps": "inline",
"plugins": [ "istanbul" ]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build
dist
node_modules
npm-debug.log
.nyc_output
18 changes: 0 additions & 18 deletions .istanbul.yml

This file was deleted.

30 changes: 24 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
"scripts": {
"build": "babel lib --out-dir dist && babel bin --out-dir dist/bin",
"pretest": "eslint .",
"test": "npm run test:unit --coverage",
"posttest": "npm run check-coverage",
"test": "nyc npm run test:unit",
"prepublish": "npm run build",
"test:unit": "istanbul cover _mocha -- --compilers js:babel-register test",
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100",
"test:unit": "mocha test",
"coveralls": "cat ./build/coverage/lcov.info | coveralls"
},
"author": "Mathias Schreck <schreck.mathias@gmail.com>",
Expand All @@ -29,6 +27,7 @@
},
"devDependencies": {
"babel-cli": "6.9.0",
"babel-plugin-istanbul": "^4.1.3",
"babel-preset-es2015": "6.9.0",
"babel-register": "6.9.0",
"chai": "3.5.0",
Expand All @@ -37,14 +36,33 @@
"eslint": "2.11.1",
"eslint-config-holidaycheck": "0.9.0",
"eslint-plugin-mocha": "3.0.0",
"istanbul": "1.0.0-alpha.2",
"istanbul-api": "lo1tuma/istanbul-api#435b30574137852fc778044f2973624aa9c9184d",
"mocha": "2.5.3",
"nyc": "^10.3.2",
"proxyquire": "1.7.9",
"sinon": "1.17.4",
"sinon-as-promised": "4.0.0",
"sinon-chai": "2.8.0"
},
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"lib/**/*.js"
],
"reporter": [
"lcov",
"text-summary"
],
"cache": false,
"all": true,
"check-coverage": true,
"require": [ "babel-register" ],
"sourceMap": true,
"instrumment": false,
"report-dir": "./build/coverage"
},
"repository": {
"type": "git",
"url": "https://github.com/lo1tuma/pr-log.git"
Expand Down

0 comments on commit bf2875d

Please sign in to comment.