Stay organized with collections
Save and categorize content based on your preferences.
FailureRetention
@Incubating interface 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.
enable
abstract var enable: Boolean
Enables Android Test Retention. 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
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-10-12 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2020-10-12 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-12 UTC."]]