Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Front-End Code Quality, Part 5 [Video]

DZone's Guide to

Front-End Code Quality, Part 5 [Video]

In Part 5 of our series, we check out what Istanbul and Grunt can do for your code coverage and unit testing efforts when working with JavaScript.

· Web Dev Zone ·
Free Resource

Learn how Crafter’s Git-based content management system is reinventing modern digital experiences. Download this white paper now. 

Running Jasmine-Based JavaScript Unit Tests With Code Coverage Using Istanbul and Grunt

How to calculate code coverage for JavaScript unit tests written in Jasmine using Istanbul.We will also see how to install contrib Jasmine in Istanbul, how to tweak the Gruntfile.js files in Jasmine tasks to include the code coverage settings, how to see the result of the code coverage as HTML versions, as well as from Command Line and Visual Studio Command Task runner.

Crafter CMS is a modern Git-based platform for building innovative websites and content-rich digital experiences. Download this white paper now.

Topics:
web dev ,front-end development ,unit test ,istanbul ,code coverage

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}