O'Reilly logo

Jasmine Cookbook by Munish Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring code coverage tools

In this recipe, you will learn how to configure the code coverage tools istanbul and karma using npm.

istanbul is a good JavaScript code coverage tool that computes statement, line, function, and branch coverage. It supports all JavaScript coverage use cases including unit tests, server-side functional tests, and browser tests. For more details, you can visit the following website:

https://github.com/gotwarlost/istanbul

karma is a test runner that generates a code coverage report using istanbul. For more details, you can visit the following website:

https://github.com/karma-runner/karma-coverage

npm is the package manager for JavaScript. It comes with Node.js. Node.js is an open source server-side and networking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required