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

Link copied to clipboard

If false, then tests will only use the latest version of each dependency

Link copied to clipboard
abstract override val kaseMatrix: McVersionMatrix
Link copied to clipboard
Link copied to clipboard
abstract val params: List<McTestVersions>
Link copied to clipboard
Link copied to clipboard
open val versionMatrix: KaseMatrix

Functions

Link copied to clipboard
open fun <E> Iterable<E>.asContainers(displayName: (E) -> String, testAction: EnvironmentTestNodeBuilder<McTestVersions, ENV, FACT>.(E) -> Stream<out DynamicNode>): Stream<out DynamicNode>
open override fun <E> Sequence<E>.asContainers(displayName: (E) -> String, childNodes: EnvironmentTestNodeBuilder<McTestVersions, ENV, FACT>.(E) -> Stream<out DynamicNode>): Stream<out DynamicNode>
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>
open fun <E, T : TestEnvironment> Sequence<E>.asTests(testEnvironmentFactory: TestEnvironmentFactory<E, T>, testName: (E) -> String, testAction: suspend T.(E) -> Unit): Stream<out DynamicNode>
open override fun <E : McTestVersions> Sequence<E>.asTests(testName: (E) -> String, testAction: suspend ENV.(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)
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)
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
Link copied to clipboard
open fun versions(exhaustive: Boolean = this.exhaustive): List<McTestVersions>

either all permutations or just the last