Skip to content

Commit

Permalink
test: add test report coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Sep 26, 2019
1 parent 7bb405d commit 6d0ca81
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: UF5coppIPMTIQIOxZTxzP1o18O9Z9QWD0
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ install:

script:
- npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI

after_success:
- npm run report-coverage
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"options": {
"main": "packages/planet/src/test.ts",
"tsConfig": "packages/planet/tsconfig.spec.json",
"karmaConfig": "packages/planet/karma.conf.js"
"karmaConfig": "packages/planet/karma.conf.js",
"codeCoverage": true
}
},
"lint": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build": "ng build planet",
"test": "ng test planet",
"lint": "ng lint planet",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"e2e": "ng e2e",
"pub-only": "cd dist/planet && npm publish --access=public",
"pub": "npm run build && npm run pub-only"
Expand Down

0 comments on commit 6d0ca81

Please sign in to comment.