FailureRetention

Added in 4.2.0
Deprecated in 7.0.0

@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 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 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

Added in 4.2.0
Deprecated in 7.0.0
var enableBoolean

maxSnapshots

Added in 4.2.0
Deprecated in 7.0.0
var maxSnapshotsInt