VersionsFactoryTest
interface VersionsFactoryTest<ENV : TestEnvironment, HasTestVersions, FACT : TestEnvironmentFactory<McTestVersions, ENV>> : KaseTestFactory<McTestVersions, ENV, FACT> , HasKaseMatrix(source)
Convenience interface for a test which uses KaseTestFactory in order to create DynamicTests for a JUnit5 test factory.
Properties
Functions
Link copied to clipboard
open fun <E : McTestVersions> Array<E>.asTests(testName: (E) -> String, testAction: suspend ENV.(E) -> Unit): Stream<out DynamicNode>
open fun <E : McTestVersions> Iterable<E>.asTests(testName: (E) -> String, testAction: suspend ENV.(E) -> Unit): Stream<out DynamicNode>
open fun <E, T : TestEnvironment> Iterable<E>.asTests(testEnvironmentFactory: TestEnvironmentFactory<E, T>, testName: (E) -> String, testAction: suspend T.(E) -> Unit): Stream<out DynamicNode>
Link copied to clipboard
Link copied to clipboard
open fun factory(exhaustive: Boolean = this.exhaustive, filter: (McTestVersions) -> Boolean? = null, testEnvironmentFactory: TestEnvironmentFactory<McTestVersions, ENV> = this@VersionsFactoryTest.testEnvironmentFactory, testAction: suspend ENV.(McTestVersions) -> Unit): Stream<out DynamicNode>
Link copied to clipboard
open fun factoryContainers(exhaustive: Boolean = this.exhaustive, filter: (McTestVersions) -> Boolean? = null, builder: TestNodeBuilder.(McTestVersions) -> Stream<out DynamicNode>): Stream<out DynamicNode>
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)
Link copied to clipboard
open fun HasParams<McTestVersions>.testFactory(testName: (McTestVersions) -> String, testAction: suspend ENV.(McTestVersions) -> Unit): Stream<out DynamicNode>
open fun testFactory(params: Iterable<McTestVersions>, testName: (McTestVersions) -> String, testAction: suspend ENV.(McTestVersions) -> Unit): Stream<out DynamicNode>
open fun testFactory(params: Sequence<McTestVersions>, testName: (McTestVersions) -> String, testAction: suspend ENV.(McTestVersions) -> Unit): Stream<out DynamicNode>
open fun testFactory(param1: McTestVersions, param2: McTestVersions, vararg additionalParams: McTestVersions, testName: (McTestVersions) -> String, testAction: suspend ENV.(McTestVersions) -> Unit): Stream<out DynamicNode>
Link copied to clipboard
internal fun VersionsFactoryTest<*, *>.testVersionsPrivate(exhaustive: Boolean, filter: (McTestVersions) -> Boolean?): List<McTestVersions>
Link copied to clipboard
either all permutations or just the last