obake
v0.1.2
Published
Pipe javascript into phantomjs, print the output, writing test coverage to disk along the way
Maintainers
Readme
obake
Pipe javascript into phantomjs, print the output, writing test coverage to disk along the way
TL;DR
istanbul + phantomjs + tap + command line = <3
Install
npm install --save-dev obakeUsage
Ideal
browserify -t browserify-istanbul test/test-*.js | obake --coverageReal world
Add following to your package.json scripts:
"scripts": {
"pretest": "rimraf coverage; mkdirp coverage",
"test": "browserify -t browserify-istanbul test/test-*.js | obake --coverage",
"posttest": "istanbul report lcov text-summary"
}(Assuming you have rimraf, mkdirp, browserify, browserify-istanbul and istanbul installed as well)
More documentation TBW.
License
Deeply is licensed under the MIT license.
