test-app
Purpose
Runs all Griffon unit and integration tests and outputs reports. The command will return appropriate response codes for embedding with continuous integration servers.Examples
griffon test-app
griffon test-app Foo
griffon test-app Foo Bar
Description
Usage:
griffon [environment]* test-app [names]*
Executes the Griffon unit and integration tests located in the test/unit
and test/integration
directories. By default all tests are executed, but you can specify the names of the tests (without the "Tests" suffix) as argument to the command:griffon test-app Foo
griffon test-app Foo Bar
You can also choose to only run the unit or integration tests:griffon test-app -unit
griffon test-app -integration
The first example will execute a test called FooTests.groovy
whilst the second will execute FooTests.groovy
and BarTests.groovy
if they exist.If you only wish to re-run failed tests use the -rerun flag