Skip to content

Commit

Permalink
Added coverage script and doc (istanbul)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcasalboni committed Apr 25, 2017
1 parent ca91e60 commit a027ed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -82,8 +82,8 @@ The AWS Step Functions state machine is composed by four Lambda Functions:
## Contributing
Contributors and PRs are always welcome!

### Testing
### Tests and coverage

Run `npm install --dev` and `npm test`.
Install dev dependencies with `npm install --dev`. Then run tests with `npm test`, or coverage with `npm run coverage`.

Current test coverage: 91%.
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -20,7 +20,8 @@
"licence": "Apache",
"scripts": {
"generate": "node ./statemachine/generate.js",
"test": "mocha"
"test": "mocha",
"coverage": "istanbul cover _mocha"
},
"dependencies": {
"commander": "^2.9.0",
Expand All @@ -30,6 +31,7 @@
"aws-sdk": "^2.40.0",
"aws-sdk-mock": "^1.6.1",
"expect.js": "^0.3.1",
"istanbul": "^0.4.5",
"mocha": "^3.2.0"
}
}

0 comments on commit a027ed5

Please sign in to comment.