Guard Plugin

  • Tags : testing, integration test
  • Latest : 1.0.7
  • Last Updated: 09 October 2012
  • Grails version : 2.0 > *
  • Authors : Aaron Long
1 vote
Dependency :
compile ":guard:1.0.7"

Documentation Source

Summary

Provides a way to run integration tests without having to repeatedly bootstrap the environment

Installation

grails install-plugin guard

Description

Grails Guard

This plugin provides a convenient way to run integration tests without having to suffer repetitive startup costs. Each time an integration test suite runs, the grails environment must be compiled and bootstrapped. For a large application, especially one with many domain objects, this can take over a minute just to run a single testcase. Over the course of several months this can lead to days of lost productivity just waiting for tests to run.

The plugin borrows from the similarly named Rails plugin (although it is more targeted at just running tests in this incarnation).

It essentially runs the tests in a loop, detecting changes to the application and tests, recompiling, and re-running the tests.

Release History

1.0.7 - Fix issue (#3) which killed guard if a testcase failed to compile

1.0.6 - Added support for Spock integration tests

1.0.5 - First public release

Documentation

http://longwa.github.com/grails-guard