OnlyFailureReporter

class OnlyFailureReporter(assertionFormatterFacade: AssertionFormatterFacade) : Reporter(source)

A Reporter which reports only failing assertions.

Parameters

assertionFormatterFacade

The formatter used to format Assertions.

Constructors

Link copied to clipboard
constructor(assertionFormatterFacade: AssertionFormatterFacade)

A Reporter which reports only failing assertions.

Functions

Link copied to clipboard
open override fun format(assertion: Assertion, sb: StringBuilder)

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 holdsAssertion.holds.