Test Failure
Describes a test failure. Contains a reference to the failure and some structural information retrieved by the test worker.
Since
7.6
Functions
Link copied to clipboard
open fun fromFileComparisonFailure(failure: Throwable, expected: String, actual: String, expectedContent: Array<Byte>, actualContent: Array<Byte>, causes: List<TestFailure>): TestFailure
Todo
Link copied to clipboard
open fun fromTestAssertionFailure(failure: Throwable, expected: String, actual: String): TestFailure
open fun fromTestAssertionFailure(failure: Throwable, expected: String, actual: String, causes: List<TestFailure>): TestFailure
Creates a new TestFailure instance from an assertion failure.
Link copied to clipboard
Creates a new TestFailure instance from a test framework failure.
Link copied to clipboard
Returns the list of causes.
Link copied to clipboard
Returns structural information about the failure.
Link copied to clipboard
Returns the raw failure.