doc / ch.tutteli.atrium.reporting.impl / OnlyFailureReporter

OnlyFailureReporter

class OnlyFailureReporter : Reporter (source)

A Reporter which reports only failing assertions.

Constructors

<init>

OnlyFailureReporter(assertionFormatterFacade: AssertionFormatterFacade)

A Reporter which reports only failing assertions.

Functions

format

fun format(assertion: Assertion, sb: StringBuilder): Unit

Formats the given assertion with the help of the defined assertionFormatterFacade and appends the result to the given sb but only in case the given assertionAssertion.holds.