DynamicTest |
A DynamicTest is an intermediate test state held by a factory. Once the factory is added to a Spec and the spec is created, the factories dynamic tests will be added to the spec as fully fledged TestCases. data class DynamicTest |
TestFactory |
A TestFactory is a generator of tests along with optional configuration and callbacks related to those tests. A test factory can be added to a Spec and the tests generated by the factory will be included in that spec. data class TestFactory |
TestFactoryConfiguration |
A TestFactoryConfiguration provides a DSL to allow for easy creation of a TestFactory when this class is the receiver of a lambda parameter. abstract class TestFactoryConfiguration : TestConfiguration |
TestFactoryId |
data class TestFactoryId |
build |
Builds an immutable TestFactory from this configuration. fun TestFactoryConfiguration.build(): TestFactory |
generate |
Generates a TestCase for each DynamicTest in this factory. Tags and assertion mode are applied to the tests. Any included factories are recursively called and their generated tests included in the returned list. fun TestFactory.generate(description: Description, spec: Spec): List<TestCase> |