Skip to content

ForgeLifecycleListener

Xavier Gouchet edited this page Aug 24, 2020 · 1 revision

class ForgeLifecycleListener : LifecycleListener

A Spek LifecycleListener used to synchronize your Forge instance with Spek.

Parameters

forge - the Forge instance to keep synced with Spek scopes

seeds - the seeds map (provide a specific seed for each scope in your Spek class)

Constructors

<init>

ForgeLifecycleListener(forge: Forge, seeds: Map<String, Long>)

A Spek LifecycleListener used to synchronize your Forge instance with Spek.

Parameters

forge - the Forge instance to keep synced with Spek scopes

seeds - the seeds map (provide a specific seed for each scope in your Spek class)

Functions

afterExecuteTest

fun afterExecuteTest(test: TestScope, result: ExecutionResult): Unit

Inheritdoc

beforeExecuteGroup

fun beforeExecuteGroup(group: GroupScope): Unit

Inheritdoc

beforeExecuteTest

fun beforeExecuteTest(test: TestScope): Unit

Inheritdoc