Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Commit

Permalink
Use Istanbul for test coverage report
Browse files Browse the repository at this point in the history
* Generates coverage stats and a HTML report
  • Loading branch information
robinjmurphy committed Jan 30, 2016
1 parent f7db2c2 commit f25afa6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -11,4 +11,5 @@ node_modules
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
Session.vim
play.js
play.js
coverage
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -437,6 +437,12 @@ To check your code for linting errors, run:
npm run lint
```

To generate a test coverage report, run:

```
npm run coverage
```

## Want to help?

This project is just getting off the ground and could use some help with DRYing things up and refactoring.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -13,7 +13,8 @@
"scripts": {
"test": "mocha",
"lint": "eslint .",
"posttest": "npm run lint"
"posttest": "npm run lint",
"coverage": "istanbul cover _mocha -- -R dot"
},
"keywords": [
"postgres",
Expand Down Expand Up @@ -41,6 +42,7 @@
},
"devDependencies": {
"eslint": "^1.10.3",
"istanbul": "^0.4.2",
"mocha": "^2.1.0",
"sinon": "^1.12.2"
},
Expand Down

0 comments on commit f25afa6

Please sign in to comment.