Skip to content
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

Added code coverage. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
*.log
node_modules
coverage
.nyc_output
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ sudo: false

language: node_js

script:
- npm run-script coverage

after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

node_js:
- '0.10'
- '0.12'
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Next

* [#23](https://github.com/alexa-js/alexa-utterances/issues/23): Added code coverage - [@dblock](https://github.com/dblock).
* Your contribution here.

### 0.2.1
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![NPM](https://img.shields.io/npm/v/alexa-utterances.svg)](https://www.npmjs.com/package/alexa-utterances/)
[![build Status](https://travis-ci.org/alexa-js/alexa-utterances.svg?branch=master)](https://travis-ci.org/alexa-js/alexa-utterances)
[![Coverage Status](https://coveralls.io/repos/github/alexa-js/alexa-utterances/badge.svg?branch=master)](https://coveralls.io/github/alexa-js/alexa-utterances?branch=master)

Generate expanded Amazon Alexa utterances from a template string.

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"prepublish": "npm test",
"test": "tap ./test"
"test": "tap ./test",
"coverage": "tap ./test --coverage --coverage-report=lcov"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +30,7 @@
"numbered": "^1.0.0"
},
"devDependencies": {
"tap": "^8.0.1"
"tap": "^8.0.1",
"coveralls": "^2.11.15"
}
}