(Quick Reference)

test

Purpose

Executes the Grails tests via the built in test runner in Grails.

Description

Calls the test-app Grails script. By default passes no arguments, which results in all test phases and types being executed.

Select specific tests to execute:

$ gradle test -Dtest.single="Foo"

Value of test.single is passed as a Grails argument which utilizes Grails's pattern matching for which tests will be executed.