Questions tagged [isparta]

Isparta is a npm package which acts as a code coverage tool for ES6 using babel.

Definition:

According to the Official Documentation:

Isparta is a code coverage tool for ES6 using babel.

Its intention is to be used with karma and karma-coverage, which provides code coverage reports using istanbul.

In other words, Isparta is a npm package which acts as a code coverage tool for ES6.

Installation:

npm install --save-dev isparta

Example Usage:

The following command would allow you to run a coverage over mocha tests:

babel-node node_modules/isparta/bin/isparta cover --report text --report html node_modules/mocha/bin/_mocha -- --reporter dot

Important Links:

Related Tags:

48 questions
0
votes
1 answer

Angular2 Unit Test Component getting "No Provider for DirectiveResolver"

I'm getting the following error: Error: No provider for DirectiveResolver! Error: DI Exception at NoProviderError.BaseException [as constructor] (http://localhost:9876/jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/exceptions.js:19:23) …
Bolza
  • 1,904
  • 2
  • 17
  • 42
0
votes
1 answer

isparta module not loading properly so can't run test cases

My tests used to run absolutely fine, but all of a sudden I'm getting the following error while running tests. Please help. I'm stuck on this for two days. It's a react project. I'm using web-pack and babel. Using isparta for code-coverage. …
sapy
  • 8,952
  • 7
  • 49
  • 60
0
votes
1 answer

SonarQube Cannot Read the lcov.info for JavaScript

I am using karma-coverage together with isparta-loader in my JavaScript unit test to generate the lcov.info file. However, when I run the SonarQube analysis using JavaScript Plugin, the test coverage report is not generated. If the lcov.info…
1 2 3
4