Skip to content

Commit

Permalink
set up coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sibnerian committed Feb 19, 2017
1 parent 533c8ed commit d8f7e76
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pids
lib-cov

# Coverage directory used by tools like istanbul
.coveralls.yml
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pids
lib-cov

# Coverage directory used by tools like istanbul
.coveralls.yml
coverage

# nyc test coverage
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ node_js:
os:
- linux
- osx
script: npm run coverage
after_success: 'npm run coveralls'
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# electron-promise-ipc
[![Build Status](https://travis-ci.org/sibnerian/electron-promise-ipc.svg?branch=master)](https://travis-ci.org/sibnerian/electron-promise-ipc)

[![Build Status](https://travis-ci.org/sibnerian/electron-promise-ipc.svg?branch=master)](https://travis-ci.org/sibnerian/electron-promise-ipc)[![Coverage Status](https://coveralls.io/repos/github/sibnerian/electron-promise-ipc/badge.svg?branch=master)](https://coveralls.io/github/sibnerian/electron-promise-ipc?branch=master)

#### Promise-y IPC calls in Electron.

## Installation
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "Run IPC calls with a promise API.",
"scripts": {
"pretest": "npm run --silent lint && npm run build",
"coverage": "istanbul cover _mocha",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
"test": "npm run tests-only",
"tests-only": "mocha",
"lint": "eslint .",
Expand All @@ -21,7 +23,6 @@
"dependencies": {
"bluebird": "^3.4.7",
"is-electron-renderer": "^2.0.1",
"sinon": "^1.17.7",
"uuid": "^3.0.1"
},
"devDependencies": {
Expand All @@ -31,17 +32,20 @@
"babel-preset-airbnb": "^2.2.3",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"coveralls": "^2.11.16",
"electron": "^1.4.15",
"electron-ipc-mock": "^0.0.2",
"eslint": "^3.15.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.10.0",
"istanbul": "1.1.0-alpha.2",
"lolex": "^1.5.2",
"mkdirp": "^0.5.1",
"mocha": "^3.2.0",
"proxyquire": "^1.7.11",
"rimraf": "^2.5.4"
"rimraf": "^2.5.4",
"sinon": "^1.17.7"
}
}

0 comments on commit d8f7e76

Please sign in to comment.