Skip to content

Commit

Permalink
Merge pull request #3 from brunolm/code-coverage
Browse files Browse the repository at this point in the history
Add code coverage and coverall integration
  • Loading branch information
brunolm authored Oct 27, 2017
2 parents efdbac6 + be8c2ea commit 973f089
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ script:
- npm run test
- npm run e2e
- npm run build -- --prod --base-href /

after_success:
- npm run coverage
- npm run coveralls
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Angular: How To
[![Build Status](https://travis-ci.org/brunolm/angular-how-to.svg?branch=master)](https://travis-ci.org/brunolm/angular-how-to)
[![Coverage Status](https://coveralls.io/repos/github/brunolm/angular-how-to/badge.svg?branch=master)](https://coveralls.io/github/brunolm/angular-how-to?branch=master)

Each Pull Request will contain explanation and steps taken to complete a feature.

## New project

- [Create a new Angular project](https://github.com/brunolm/angular-how-to/pull/1)

## Testing

- [Add project on Travis CI](https://github.com/brunolm/angular-how-to/pull/2)
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"start": "ng serve",
"build": "ng build",
"test": "ng test --watch=false",
"test-watch": "ng test --watch=false",
"lint": "ng lint",
"e2e": "ng e2e"
"e2e": "ng e2e",
"test-watch": "ng test --watch=false",
"coverage": "ng test --watch=false --code-coverage",
"coveralls": "coveralls < ./coverage/lcov.info"
},
"private": true,
"dependencies": {
Expand All @@ -34,6 +36,7 @@
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "~3.2.0",
"coveralls": "^3.0.0",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
Expand Down

0 comments on commit 973f089

Please sign in to comment.