Neuron Powered Motorization

    mocha-with-coverage

    0.0.2 • Public • Published

    mocha-with-coverage

    Run mocha tests with istanbul coverage but include non-tested files.

    Istanbul does not have built-in support to show non-tested files (see this issue). gulp-istanbul provides this functionality, but setting this up in every project can become tedious.

    This module helps you set this up quickly:

    npm install --save-dev mocha-with-coverage
    ./node_modules/.bin/mocha-with-coverage \
      --istanbul.includeUntested \
      --mocha.require test/setup.js \
      --mocha.timeout 2500 \
      --sources src/**/*.js \
      --tests test/**/*.spec.js

    Currently four reports are generated: json, lcovonly, html and cobertura in reports/coverage/json, reports/coverage/lcovonly, reports/coverage/html and reports/coverage/cobertura, respectively. If you need this to be configurable, please open an issue.

    Install

    npm i mocha-with-coverage

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • pigulla