Skip to content

Commit

Permalink
Make coverage script consider e2e tests too (apache#637)
Browse files Browse the repository at this point in the history
Uses nyc for code coverage
  • Loading branch information
raphinesse committed Aug 14, 2018
1 parent ad0b0d7 commit 6ccda67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
coverage
.nyc_output/
node_modules
npm-debug.log
../npm-debug.log
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -49,16 +49,16 @@
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"globby": "^8.0.1",
"istanbul": "^0.4.5",
"jasmine": "^3.0.1",
"jasmine-spec-reporter": "^4.2.1",
"nyc": "^12.0.2",
"rewire": "^4.0.1"
},
"scripts": {
"test": "npm run eslint && npm run unit-tests && npm run e2e-tests",
"eslint": "eslint src spec integration-tests",
"unit-tests": "jasmine JASMINE_CONFIG_PATH=spec/jasmine.json",
"cover": "istanbul cover --root src --print detail jasmine JASMINE_CONFIG_PATH=spec/jasmine.json",
"cover": "nyc -x spec/ -x integration-tests/ npm test",
"e2e-tests": "jasmine JASMINE_CONFIG_PATH=integration-tests/jasmine.json"
},
"contributors": [
Expand Down

0 comments on commit 6ccda67

Please sign in to comment.