O'Reilly logo

AngularJS Testing Cookbook by Simon Bailey

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

Automating test runners using Gulp

An additional task runner you can use, other than Grunt, is Gulp (you can download it at http://gulpjs.com/). Gulp is a stream-based build system with a simple yet powerful API focusing on code over configuration. Gulp builds use the Node.js streams that do not need to write temporary files or folders to disk, which results in faster builds. I advise you to read this excellent article on streams at https://github.com/substack/stream-handbook. The Gulp API is small and extremely simple:

  • gulp.src(globs[, options]): This returns a readable stream
  • gulp.dest(path): This can receive an input stream and output to a destination, for example, writing files
  • gulp.task(name[, deps], fn): This defines tasks using orchestrator ...

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