Skip to content

Latest commit

 

History

History

istanbul

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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')