EmulatorSnapshots

Added in 7.0.0
Deprecated in 8.11.0-alpha05

@Incubating
interface EmulatorSnapshots

Known direct subclasses
FailureRetention

This interface is deprecated. This feature is no longer developed and supported.


Options for configuring Android Test Retention.

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

Summary

Public functions

Unit

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

Public properties

Boolean

Enables snapshot compression.

Boolean

Enables automated test failure snapshots.

Int

Maximum number of failures that would be snapshotted.

Public functions

retainAll

Added in 7.0.0
Deprecated in 8.11.0-alpha05
fun retainAll(): Unit

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

Public properties

compressSnapshots

Added in 7.0.0
Deprecated in 8.11.0-alpha05
var compressSnapshotsBoolean

Enables snapshot compression. Default to false.

enableForTestFailures

Added in 7.0.0
Deprecated in 8.11.0-alpha05
var enableForTestFailuresBoolean

Enables automated test failure snapshots. Default to false.

maxSnapshotsForTestFailures

Added in 7.0.0
Deprecated in 8.11.0-alpha05
var maxSnapshotsForTestFailuresInt

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