Pipe javascript into phantomjs, print the output, writing test coverage to disk along the way
npm install obakePipe javascript into phantomjs, print the output, writing test coverage to disk along the way



istanbul + phantomjs + tap + command line = <3
``bash`
npm install --save-dev obake
`bash`
browserify -t browserify-istanbul test/test-*.js | obake --coverage
Add following to your package.json scripts:
`json`
"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.
Deeply is licensed under the MIT license.