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.

fromTestFrameworkFailure

Creates a new TestFailure instance from a test framework failure.

Return

the new instance

Since

7.6

Parameters

failure

the failure


open fun fromTestFrameworkFailure(failure: Throwable, @Nullable causes: @Nullable List<TestFailure>): TestFailure(source)

Creates a new TestFailure instance from a test framework failure.

Return

the new instance

Since

7.6

Parameters

failure

the failure

causes

the list of cause failures; can be null