Skip to content

Add code coverage and coverall integration #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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