FailureRetention

@Incubating interface FailureRetention : EmulatorSnapshots

Options for configuring Android Test Retention.

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

Summary

Inherited functions

Unit retainAll()

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

Properties

abstract Boolean

abstract Int

Inherited properties

Boolean compressSnapshots

Enables snapshot compression. Default to false.

Boolean enableForTestFailures

Enables automated test failure snapshots. Default to false.

Int maxSnapshotsForTestFailures

Maximum number of failures that would be snapshotted. Any failures after the first $maxSnapshotsForTestFailures will not have snapshots. Default to 2. Must be >0

Properties

enable

abstract var enable: Boolean

Deprecated.

maxSnapshots

abstract var maxSnapshots: Int

Deprecated.