open class SpoonExtension
Configuration options for the gradle spoon plugin.
Variables based on the following documentation:
<init> |
Configuration options for the gradle spoon plugin. SpoonExtension() |
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
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 |
grantAll |
Grant all runtime permissions during installation on Marshmallow and above devices. (false by default) var grantAll: Boolean |
grantAllPermissions |
var |
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 |
DEFAULT_OUTPUT_DIRECTORY |
const val DEFAULT_OUTPUT_DIRECTORY: String |