O'Reilly logo

Jasmine JavaScript Testing by Paulo Ragonha

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

Grunt

Grunt is a JavaScript tool to create and automate project tasks. It solves the same problems as Ant for Java, Rake for Ruby, and so on, but in the JavaScript language.

It is widely used by the Node.js community, and it is gaining a lot of traction on all sorts of JavaScript projects.

We are going to use it to make our lives simpler and more automated, so that we can focus more on the development time!

Installation

Grunt is also a Node.js package, so its installation is pretty simple once you have Node.js installed (as explained in Chapter 4, Asynchronous Testing – AJAX).

Open up a terminal and invoke Node.js's package manager to install grunt's command-line interface and make it available globally:

$ npm install -g grunt-cli

At the project's ...

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