obake

0.1.2 • Public • Published

obake

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

Linux Build Coverage Status Dependency Status

TL;DR

istanbul + phantomjs + tap + command line = <3

Install

npm install --save-dev obake

Usage

Ideal

browserify -t browserify-istanbul test/test-*.js | obake --coverage

Real 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    351
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    351
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i obake

Weekly Downloads

351

Version

0.1.2

License

MIT

Last publish

Collaborators

  • alexindigo