SpekForge - xgouchet/Elmyr GitHub Wiki

spekForge

fun Root.spekForge(seeds: Map<String, Long> = emptyMap(), configurator: ForgeConfigurator? = null): Forge

Creates a Forge instance for the root Spek scope, already configured with a ForgeLifecycleListener.

Parameters

seeds - a map containing the seeds to reset your test scopes (the key should be the qualified name of your tests, with each parent group named separated by a "/"; e.g.: "group name/sub group name/test name").

configurator - the ForgeConfigurator instance to use (leave empty if not necessary)