javascript - Adding code coverage to async node.js mocha tests in WebStorm -


i trying set code coverage node.js unit tests.

what trying this:

  • use webstorm running tests
  • use mocha (and co-mocha) testing framework
  • use yield , generators making test code more readable
  • see code coverage of source code via webstorm ui (hoping see source code files color-coded according code coverage)

the first 2 points going fine, third 1 tripping me up.

unfortunately webstorm doesn't provide coverage support mocha:( please follow web-10373 updates


Comments