Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Jasmine code coverage example via Istanbul and Karma
branch: master
Failed to load latest commit information.
test Add a test to check for thrown exception. Mention the integration with Grunt.
my.conf.js Only test sqrt.js.
package.json package.json
sqrt.js Implement square root.

This repo contains an example setup for tracking code coverage of Jasmine tests via Istanbul and Karma.

Run the following:

npm install
npm test

and then open the code coverage report under the subdirectory coverage.

The tests are executed using PhantomJS. It is easy to add other browsers as well

Using Grunt? Apply the tweak and now the test becomes a task.

Something went wrong with that request. Please try again.