testFiles

fun Root.testFiles(): TestFiles

Creates a TestFiles instance that will listen to thisRoot to capture the structure of the tests.

This function must be called from the root of a Spek before any test is created. That means, for example, that it must not be called from the initializer of a memoized value. The returned instance should be used throughout the Spek.

Samples

de.joshuagleitze.testfiles.spek.samples.ExampleSpec

Sources

(source)
Link copied to clipboard