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

Generating code coverage using karma and istanbul

In the previous recipe, we looked at how to configure code coverage tools and associated plugins for karma. In this recipe, you will learn how to generate code coverage reports using karma and istanbul.

Getting ready

Let's configure istanbul, karma, and associated plugins for karma. For more details, refer to the previous recipe, Configuring Code Coverage tools.

You will learn how to generate code coverage reports with the help of the recipe explained in Chapter 2, Jasmine with TDD and BDD Processes. For more information, refer to the Designing the Jasmine test for existing code using TDD and BDD recipe in Chapter 2, Jasmine with TDD and BDD Processes.

How to do it...

You need to perform the following ...

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