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

Front-End Code Quality, Part 2 [Video]

DZone's Guide to

Front-End Code Quality, Part 2 [Video]

Welcome back! We continue our series on front-end code quality by exploring how ew can use two great unit testing tools form the command line.

· Web Dev Zone ·
Free Resource

Deploy code to production now. Release to users when ready. Learn how to separate code deployment from user-facing feature releases with LaunchDarkly.

2- Running Jasmine JavaScript Unit Test From the Command Line Using Grunt

In this video, we go over how to run JavaScript unit tests written in Jasmine from the command line using Grunt and PhantomJS. This post includes how to install Node.js with npm (Node Package Manager), how to install Grunt CLI (Command Line Interface), how to install contrib-jasmine npm, how to create a Node.js default configuration file (pacakges.json), how to create the first Gruntfile.js configuration file, how to set the configuration to run Jasmine inside Gruntfile.js, and how to ignore node_modules from Git source control so it will be ready for build automation in our forthcoming videos.


Deploy code to production now. Release to users when ready. Learn how to separate code deployment from user-facing feature releases with LaunchDarkly.

Topics:
web dev ,front-end development ,code quality ,grunt

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}