Karma coverage using Instabul

Karma is an awesome testing environment, it is open source, it supports a plethora of testing frameworks and it is easy to use.

In this post I am going to create some simple tests, run them on Karma using Jasmine and finally, show some code coverage reports, through Karma coverage and Instabul.

Source Code

Code outlined in this article can be found here.

Setup

In this sample, I created a new project, running npm init -y, installing the following dependencies:

Learn More

Tags: Coverage Karma