doc / ch.tutteli.atrium.assertions.builders / withFailureHint

withFailureHint

fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withFailureHint(failureHintFactory: () -> Assertion): DescriptiveAssertionWithFailureHint.ShowOption (source)

Option to create a DescriptiveAssertion like assertion with an additional hint which might be shown if the Descriptive.DescriptionOption.test fails.

You can use withFailureHintBasedOnSubject or withFailureHintBasedOnDefinedSubject in case your DescriptiveAssertion is based on the subject.