Configuration Syntax: Espresso

Please refer to the Common Configuration Syntax Referencefor information regarding fields such as apiVersion, kind, suites, sauce, etc.

Example Configuration#

.sauce/config.yml
loading...
See full example on GitHub

espresso#

Description: Details specific to the espresso configuration.

Type: object

Example:

espresso:
app: ./apps/calc.apk
testApp: ./apps/calc-success.apk

app#

Description: Path to the application. It supports expanded enviornment variable.

Type: string

Examples:

app: ./apps/calc.apk
app: $APP

testApp#

Description: Path to the testing application. It supports expanded enviornment variable.

Type: string

Examples:

testApp: ./apps/calc-success.apk
testApp: $TEST_APP

devices#

Description: Field for defining device details such as the device name, orientation, and formVersions.

Type: object

Example:

devices:
- name: "Android GoogleApi Emulator"
orientation: portrait
platformVersions:
- "11.0"
- "10.0"

name#

Description: Name of the device. All supported devices can be found by following this link

Type: string

Example:

- name: "Android GoogleApi Emulator"

orientation#

Description: Screen orientation.

Type: enum

Values: portrait, landscape

Example:

orientation: portrait

platformVersions#

Description: Platform version. All supported platform versions can be found by following this link

Type: array

Example:

platformVersions:
- "11.0"
- "10.0"

testOptions#

Description: A set of parameters allowing you to select tests for the suite based on matching attributes.

Type: object

Example:

testOptions:
class:
- com.example.android.testing.androidjunitrunnersample.CalculatorAddParameterizedTest
notClass:
- com.example.android.testing.androidjunitrunnersample.CalculatorInstrumentationTest
size: small
package: com.example.android.testing.androidjunitrunnersample
annotation: com.android.buzz.MyAnnotation

class#

Description: Instructs saucectl to only run the specified classes for this test suite.

Type: array

Example:

class:
- com.example.android.testing.androidjunitrunnersample.CalculatorAddParameterizedTest

notClass#

Description: Instructs saucectl to run all classes for the suite except those specified here.

Type: array

Example:

notClass:
- com.example.android.testing.androidjunitrunnersample.CalculatorInstrumentationTest

size#

Description: Instructs saucectl to run only tests that are annotated with the matching size value.

Type: enum

Values: small, medium, large

Example:

size: small

package#

Description: Instructs saucectl to run only tests in the specified package.

Type: string

Example:

package: com.example.android.testing.androidjunitrunnersample

annotation#

Description: Instructs saucectl to run only tests that match a custom annotation that you have set.

Type: string

Example:

annotation: com.android.buzz.MyAnnotation
Last updated on by Nancy Sweeney