gradle-spoon-plugin / com.jaredsburrows.spoon / SpoonExtension

SpoonExtension

open class SpoonExtension

Configuration options for the gradle spoon plugin.

Variables based on the following documentation:

Constructors

<init>

Configuration options for the gradle spoon plugin.

SpoonExtension()

Properties

adbTimeout

Set ADB timeout. (minutes) (default is 10 minutes)

var adbTimeout: Int

allowNoDevices

Allow no devices to be connected. (false by default)

var allowNoDevices: Boolean

baseOutputDir

Path to baseOutputDir directory. ("$buildDir/spoon-baseOutputDir" by default)

var baseOutputDir: String

className

Test class name to run (fully-qualified).

var className: String

clearAppDataBeforeEachTest

Run 'pm clear' before each test to clear app data before each test.

var clearAppDataBeforeEachTest: Boolean

codeCoverage

Code coverage flag. For Spoon to calculate coverage file your app must have the WRITE_EXTERNAL_STORAGE permission. (false by default) (This option pulls the coverage file from all devices and merge them into a single file merged-coverage.ec.)

var codeCoverage: Boolean

debug

Whether or not debug logging is enabled. (false by default)

var debug: Boolean

devices

Add device serials for test execution.

var devices: MutableSet<String>

failIfNoDeviceConnected

var failIfNoDeviceConnected: Boolean

grantAll

Grant all runtime permissions during installation on Marshmallow and above devices. (false by default)

var grantAll: Boolean

grantAllPermissions

var grantAllPermissions: Boolean

ignoreFailures

Do not fail build if a test fails, let all the tests run and finish. (false by default)

var ignoreFailures: Boolean

instrumentationArgs

Extra arguments to pass to instrumentation.

var instrumentationArgs: MutableList<String>

methodName

Test method name to run (must also use className)

var methodName: String

noAnimations

Whether or not animations are enabled. Disable animated gif generation. (false by default)

var noAnimations: Boolean

numShards

The number of separate shards to create.

var numShards: Int

sequential

Execute the tests device by device. (false by default)

var sequential: Boolean

shard

Toggle sharding. (false by default)

var shard: Boolean

shardIndex

The shardIndex option to specify which shard to run.

var shardIndex: Int

singleInstrumentationCall

Run tests in separate instrumentation calls.

var singleInstrumentationCall: Boolean

skipDevices

Add device serials for skipping test execution.

var skipDevices: MutableSet<String>

testSize

Run annotated tests - small, medium, large

var testSize: String

title

Identifying title for this execution. ("Spoon Execution" by default)

var title: String

Companion Object Properties

DEFAULT_OUTPUT_DIRECTORY

const val DEFAULT_OUTPUT_DIRECTORY: String