doc / ch.tutteli.atrium.domain.builders.reporting / AtriumErrorAdjusterOption

AtriumErrorAdjusterOption

interface AtriumErrorAdjusterOption : AtriumErrorAdjusterCommonOption<ReporterOption> (source)
Deprecated: Configure components via withOptions when creating an expectation verb instead; will be removed with 0.17.0

Provides options to create an AtriumErrorAdjusterOption.

Properties

assertionFormatterFacade

abstract val assertionFormatterFacade: AssertionFormatterFacade

The previously chosen AssertionFormatterFacade.

Functions

withCustomReporter

abstract fun withCustomReporter(factory: (AssertionFormatterFacade) -> Reporter): ReporterBuilderFinalStep

withDefaultAtriumErrorAdjusters

open fun withDefaultAtriumErrorAdjusters(): ReporterOption

Uses withMultipleAdjusters and applies withRemoveRunnerAtriumErrorAdjuster and withRemoveAtriumFromAtriumErrorAdjuster -- the default configuration might change in the future.

withMultipleAdjusters

abstract fun withMultipleAdjusters(configure: MultipleAdjustersOption.() -> Unit): ReporterOption

Uses the AtriumErrorAdjuster which are defined via the configure lambda.

withNoOpAtriumErrorAdjuster

abstract fun withNoOpAtriumErrorAdjuster(): ReporterOption

Uses an AtriumErrorAdjuster which does not adjust a given AtriumError but functions as an identity function.

withOnlyFailureReporter

abstract fun withOnlyFailureReporter(): ReporterBuilderFinalStep

Inherited Functions

withAtriumErrorAdjuster

abstract fun withAtriumErrorAdjuster(adjuster: AtriumErrorAdjuster): R

Uses the given AtriumErrorAdjuster as custom AtriumErrorAdjuster.

withRemoveAtriumFromAtriumErrorAdjuster

abstract fun withRemoveAtriumFromAtriumErrorAdjuster(): R

Uses an AtriumErrorAdjuster which removes stackBacktrace frames of Atrium from a given AtriumError.

withRemoveRunnerAtriumErrorAdjuster

abstract fun withRemoveRunnerAtriumErrorAdjuster(): R

Uses an AtriumErrorAdjuster which removes stackBacktrace frames of test runners from a given AtriumError.

Companion Object Functions

create

fun create(assertionFormatterFacade: AssertionFormatterFacade): AtriumErrorAdjusterOption