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

Jumpstart your Angular applications with Indigo.Design, a unified platform for visual design, UX prototyping, code generation, and app development.

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.

Take a look at an Indigo.Design sample application to learn more about how apps are created with design to code software.

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 }}