Skip to content

Commit

Permalink
Added code coverage, closes alexa-js#23.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jan 18, 2017
1 parent 7724c47 commit 074cf0f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
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"
}
}

0 comments on commit 074cf0f

Please sign in to comment.