FailureRetention
@Incubating interface FailureRetention
com.android.build.api.dsl.FailureRetention |
Options for configuring Android Test Retention.
When enabled, Android Test Retention automatically takes emulator snapshots on test failures.
Summary
Public methods |
|
---|---|
abstract Unit |
Call this function to take unlimited number of test failure snapshots (will ignore maxSnapshots setting) |
Properties |
|
---|---|
abstract Boolean |
Enables snapshot compression. |
abstract Boolean |
Enables Android Test Retention. |
abstract Int |
Maximum number of failures that would be snapshotted. |
Public methods
retainAll
abstract fun retainAll(): Unit
Call this function to take unlimited number of test failure snapshots (will ignore maxSnapshots setting)
Properties
compressSnapshots
abstract var compressSnapshots: Boolean
Enables snapshot compression. Default to false.
maxSnapshots
abstract var maxSnapshots: Int
Maximum number of failures that would be snapshotted. Any failures after the first $maxSnapshots will not have snapshots. Default to 5. Must be >0