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

OnlyFailureReporter

class OnlyFailureReporter : Reporter (source)

A Reporter which reports only failing assertions.

Constructors

<init>

OnlyFailureReporter(assertionFormatterFacade: AssertionFormatterFacade, atriumErrorAdjuster: AtriumErrorAdjuster)

A Reporter which reports only failing assertions.

Properties

atriumErrorAdjuster

val atriumErrorAdjuster: AtriumErrorAdjuster

The adjuster which should be used to adjust the resulting AtriumError.

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.