TestFixtures

@Incubating
public interface TestFixtures


DSL object for configuring test fixtures.

Summary

Public methods

abstract boolean

Flag to enable Android resource processing in test fixtures.

abstract boolean

Flag to enable test fixtures.

abstract void
setAndroidResources(boolean androidResources)

Flag to enable Android resource processing in test fixtures.

abstract void
setEnable(boolean enable)

Flag to enable test fixtures.

Public methods

getAndroidResources

abstract boolean getAndroidResources()

Flag to enable Android resource processing in test fixtures.

Default value is 'false'.

getEnable

abstract boolean getEnable()

Flag to enable test fixtures.

Default value is derived from android.experimental.enableTestFixtures which is 'false' by default.

You can override the default for this for all projects in your build by adding the line android.experimental.enableTestFixtures=true in the gradle.properties file at the root project of your build.

setAndroidResources

abstract void setAndroidResources(boolean androidResources)

Flag to enable Android resource processing in test fixtures.

Default value is 'false'.

setEnable

abstract void setEnable(boolean enable)

Flag to enable test fixtures.

Default value is derived from android.experimental.enableTestFixtures which is 'false' by default.

You can override the default for this for all projects in your build by adding the line android.experimental.enableTestFixtures=true in the gradle.properties file at the root project of your build.