Gretty supports integration tests on farms, i.e. on multiple web-apps running on the same web-server.

You don’t have to configure anything in order to use integration tests on farms. Your part is to create a farm and some integration tests, then run task:

gradle farmIntegrationTest

Gretty automatically starts and stops a servlet container before and after integration tests.

Gretty automatically invokes all integration tests for all web-apps mentioned in a farm.

If you use named farms, then you have to invoked specific tasks for named farms. For example:

farms {
  farm 'XYZ', {
    webapp ':ProjectB'
    webapp ':ProjectC'
    webapp ':ProjectD'

then you have to invoke:

gradle farmIntegrationTestXYZ

There following example projects demonstrate farm integration tests at work: