Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Code Coverage #8

Merged
merged 5 commits into from
Mar 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
coverage
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ TESTS
=====
test uses mocha. To run
`npm test`

CODE COVERAGE
=============
Install dev dependencies
`npm install`
Run
`npm run codecoverage`
The results are at
`coverage/lcov-report/index.html`
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"scripts": {
"test": "standard ./index.js ./bin/rlp && ./node_modules/mocha/bin/mocha --reporter spec ./test/",
"webtest": "browserify test/max.js | testling -u"
"webtest": "browserify test/max.js | testling -u",
"codecoverage": "istanbul cover node_modules/mocha/bin/_mocha ./test/"
},
"repository": {
"type": "git",
Expand All @@ -28,6 +29,7 @@
},
"devDependencies": {
"ethereumjs-testing": "git+https://github.com/ethereumjs/ethereumjs-testing.git",
"istanbul": "^0.4.2",
"mocha": "~1.17.1",
"standard": "^5.3.1"
},
Expand Down