BaseTest
interface BaseTest : HasTestEnvironmentFactory<DefaultTestEnvironment.Factory> , TrimmedAsserts(source)
Functions
Link copied to clipboard
Delegates to Kotest's shouldBe, but removes all the noise at the beginning of a stacktrace, like:
A special String-only version of shouldBe
which calls trimIndent
first.
Treat sequences like lists when asserting.
Link copied to clipboard
An alternative to the overloaded String-only shouldBe
, since the overloaded version automatically applies trimIndent
.
Link copied to clipboard
reads the file's text and asserts
Link copied to clipboard
open fun <ENV : TestEnvironment> HasTestEnvironmentFactory<NoParamTestEnvironmentFactory<ENV>>.test(names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun <ENV : TestEnvironment> test(testEnvironmentFactory: NoParamTestEnvironmentFactory<ENV>, names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun <PARAM, ENV : TestEnvironment> HasTestEnvironmentFactory<ParamTestEnvironmentFactory<PARAM, ENV>>.test(param: PARAM, names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun <PARAM, ENV : TestEnvironment> test(param: PARAM, testEnvironmentFactory: TestEnvironmentFactory<PARAM, ENV>, names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun test(testLocation: TestLocation = TestLocation.get(), testAction: suspend TestEnvironment.() -> Unit)
shorthand for executing a test in a hermetic TestEnvironment but without any kase parameters
Link copied to clipboard