Skip to content

Commit

Permalink
Merge pull request #13 from glorious-codes/enforcing_test_coverage
Browse files Browse the repository at this point in the history
Fix nyc reporter config
  • Loading branch information
rafaelcamargo committed Nov 28, 2018
2 parents af1042e + 11683b6 commit 52e6549
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:

- run:
name: Test
command: npm run test
command: npm run test && ./node_modules/codecov/bin/codecov
30 changes: 14 additions & 16 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"nyc": {
"check-coverage": true,
"per-file": true,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"test/**/*-test.js"
],
"reporter": [
"lcov",
"text-summary",
"html"
]
}
"check-coverage": true,
"per-file": true,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"src/**/*.js"
],
"reporter": [
"lcov",
"text-summary",
"html"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"scripts": {
"build": "./node_modules/gulp/bin/gulp.js build",
"test": "nyc ./node_modules/.bin/mocha && ./node_modules/codecov/bin/codecov",
"test": "./node_modules/.bin/nyc ./node_modules/.bin/mocha",
"prepublishOnly": "npm run build"
},
"author": "Rafael Camargo <hello@rafaelcamargo.com>",
Expand Down

0 comments on commit 52e6549

Please sign in to comment.