FailureRetention

@Incubating
public interface FailureRetention extends EmulatorSnapshots


Options for configuring Android Test Retention.

When enabled, Android Test Retention automatically takes emulator snapshots on test failures.

Summary

Public methods

abstract boolean
abstract int
abstract void
setEnable(boolean enable)
abstract void
setMaxSnapshots(int maxSnapshots)

Inherited methods

From com.android.build.api.dsl.EmulatorSnapshots
abstract boolean

Enables snapshot compression.

abstract boolean

Enables automated test failure snapshots.

abstract int

Maximum number of failures that would be snapshotted.

abstract void

Call this function to take unlimited number of test failure snapshots (will ignore maxSnapshotsForTestFailures setting)

abstract void
setCompressSnapshots(boolean compressSnapshots)

Enables snapshot compression.

abstract void
setEnableForTestFailures(boolean enableForTestFailures)

Enables automated test failure snapshots.

abstract void
setMaxSnapshotsForTestFailures(int maxSnapshotsForTestFailures)

Maximum number of failures that would be snapshotted.

Public methods

getEnable

abstract boolean getEnable()

getMaxSnapshots

abstract int getMaxSnapshots()

setEnable

abstract void setEnable(boolean enable)

setMaxSnapshots

abstract void setMaxSnapshots(int maxSnapshots)