For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

TestFrameworkFailure

Describes an unexpected test failure, i.e. when the execution fails but not with an assertion failure.

Since

7.6

Functions

Link copied to clipboard
abstract fun getCauses(): List<out Failure>
Returns the underlying causes for this failure, if any.
Link copied to clipboard
abstract fun getClassName(): String
The fully-qualified name of the underlying exception type.
Link copied to clipboard
@Nullable
abstract fun getDescription(): @Nullable String
Returns a long description of the failure.
Link copied to clipboard
@Nullable
abstract fun getMessage(): @Nullable String
Returns a short message (typically one line) for the failure.
Link copied to clipboard
@Nullable
abstract fun getOwnDescription(): @Nullable String
Returns a long description of this failure node, excluding the descriptions of its causes.
Link copied to clipboard
Returns the problems associated with this failure.
Link copied to clipboard
abstract fun getStacktrace(): String
The stringified version of the stacktrace created from the underlying exception.