Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
coverage
lib
test
README.md
index.html
package.json
test.js

README.md

Istanbul example

Code coverage with istanbul and testing lmd build with mocha and mocha-phantomjs

Live example Coverage report example

Run tests

$ npm i
$ npm coverage

Note

  • npm coverage will generate 2 folders, both of them you can add to your .gitignore:
    • lib-cov - instrumented libs
    • coverage - coverage report for all tests
  • test dir should be writable to write temporary coverage-*.json files
  • each .lmd.js file should change root directory to ../lib-cov in coverage mode (process.argv[2] === '--coverage')