Source set: Common
public class FailureContext(
public val error: Throwable,
public val artifacts: List<FailureArtifact> = emptyList(),
)
A contextual object provided to TestFailureHandlers when a Compose UI test fails.
This context encapsulates the environment of the failure, providing both the root exception that triggered the failure and any diagnostic artifacts (such as screenshots or UI hierarchy dumps) that were captured by the testing framework prior to invoking the custom handlers.