FailureRetention

@Incubating interface FailureRetention : EmulatorSnapshots


Options for configuring Android Test Retention.

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

Summary

Public properties

Boolean

This property is deprecated. Renamed to enableForTestFailures

Int

This property is deprecated. Renamed to maxSnapshotsForTestFailures

Inherited functions

From class com.android.build.api.dsl.EmulatorSnapshots
Unit

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

Inherited properties

From class com.android.build.api.dsl.EmulatorSnapshots
Boolean

Enables snapshot compression.

Boolean

Enables automated test failure snapshots.

Int

Maximum number of failures that would be snapshotted.

Public properties

enable

var enableBoolean

maxSnapshots

var maxSnapshotsInt