# isFrameworkFailure

@Incubating
open fun isFrameworkFailure(): Boolean(source)

Is this a test-framework failure (as opposed to a failure raised from inside a test method)?

Framework failures arise when the test framework itself signals that something went wrong outside the body of a test method — for example, a TestNG test class whose constructor throws, a JUnit Jupiter `@BeforeAll` hook that aborts the container, or a custom JUnit 4 runner whose `run()` method throws. Such failures are typically attached to a synthesized leaf or to a composite descriptor (the worker root suite, the test class, etc.) rather than to a leaf test.

These failures are surfaced to the user even under test logging configurations that would otherwise filter out the descriptor they are attached to.

#### Since

9.7.0

#### Return

`true` if this is a test-framework failure