Skip to content

Commit

Permalink
Merge pull request #29 from dblock/coverage
Browse files Browse the repository at this point in the history
Added code coverage.
  • Loading branch information
dblock authored Jan 11, 2017
2 parents 531846c + 6b3587b commit db2a61d
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 33 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ Network Trash Folder
Temporary Items
.apdisk
/.idea

# Code Coverage
coverage
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ install:
- npm install

script:
- npm run-script test
- npm run-script coverage

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

notifications:
email: false
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [#23](https://github.com/alexa-js/alexa-app-server/pull/23): Added `server.stop()` - [@dblock](https://github.com/dblock).
* [#23](https://github.com/alexa-js/alexa-app-server/pull/23): Added LICENSE - [@dblock](https://github.com/dblock).
* [#23](https://github.com/alexa-js/alexa-app-server/pull/23): Added tests - [@dblock](https://github.com/dblock).
* [#29](https://github.com/alexa-js/alexa-app-server/pull/29): Added code coverage - [@dblock](https://github.com/dblock).
* Your contribution here.

### 2.3.1 (Dec 3, 2016)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ An Alexa App (Skill) Server module using Node.js and the [alexa-app](https://www

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

## Installation

Expand Down
67 changes: 35 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
{
"name": "alexa-app-server",
"version": "2.3.1",
"description": "A web server module for Alexa (Amazon Echo) apps (skills) using Node.js, Express, and alexa-app.",
"main": "index.js",
"author": "Matt Kruse",
"repository": {
"type": "git",
"url": "https://github.com/alexa-js/alexa-app-server.git"
},
"bugs": {
"url": "https://github.com/alexa-js/alexa-app-server/issues"
},
"scripts": {
"test": "./node_modules/.bin/mocha"
},
"license": "MIT",
"dependencies": {
"alexa-app": "^2.4.0",
"alexa-verifier": "0.0.5",
"bluebird": "^2.9.34",
"body-parser": "~1.0.1",
"ejs": "~0.7.1",
"express": "~4.0.0",
"hotswap": "^1.1.0"
},
"devDependencies": {
"supervisor": "^0.6.0",
"mocha": "^2.3.4",
"chai": "^3.4.1",
"supertest": "^2.0.1",
"supertest-as-promised": "^4.0.2"
}
"name": "alexa-app-server",
"version": "2.3.1",
"description": "A web server module for Alexa (Amazon Echo) apps (skills) using Node.js, Express, and alexa-app.",
"main": "index.js",
"author": "Matt Kruse",
"repository": {
"type": "git",
"url": "https://github.com/alexa-js/alexa-app-server.git"
},
"bugs": {
"url": "https://github.com/alexa-js/alexa-app-server/issues"
},
"scripts": {
"test": "./node_modules/.bin/mocha",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec"
},
"license": "MIT",
"dependencies": {
"alexa-app": "^2.4.0",
"alexa-verifier": "0.0.5",
"bluebird": "^2.9.34",
"body-parser": "~1.0.1",
"ejs": "~0.7.1",
"express": "~4.0.0",
"hotswap": "^1.1.0"
},
"devDependencies": {
"supervisor": "^0.6.0",
"mocha": "^2.3.4",
"chai": "^3.4.1",
"supertest": "^2.0.1",
"supertest-as-promised": "^4.0.2",
"istanbul": "0.4.5",
"coveralls": "^2.11.15"
}
}

0 comments on commit db2a61d

Please sign in to comment.