CHAPTER 6

image

Using Grunt for Testing and Local Development

In previous chapters, we’ve concentrated on how to automate the build process, to optimize our assets and ensure they meet certain quality standards. In this chapter, we will focus on using Grunt to set up a local web server. Once set up, we’ll explore using our local web server to perform tests that run in headless and actual browsers. To further ensure that the software we’re building meets best practices of modern development, we’ll expose our development environment to the Internet, which will allow us to automate the running of performance tests.

Setting Up a Local Server

As Grunt is ...

Get Pro Grunt.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.