From fbb5bf9c7af9cf32c02b51d4213d918ae814d703 Mon Sep 17 00:00:00 2001 From: Josh Schriever Date: Thu, 14 Nov 2019 10:31:42 -0600 Subject: [PATCH] add groovy buildscript configuration example --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1adde6d..405669f 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,15 @@ gordon { } ``` +##### for groovy buildscripts, add `.INSTANCE` to `PoolingStrategy` because it is a kotlin sealed class +```groovy +import com.banno.gordon.PoolingStrategy + +gordon { + poolingStrategy.set(PoolingStrategy.PhonesAndTablets.INSTANCE) +} +``` + #### Pooling strategies - `EachDevice` - each device is its own pool, so each test will run on each device - `AllDevices` - all devices make up one pool, so each test will run only once, on an unspecified device