VariistConfig

class VariistConfig(val seed: Seed = Seed(Random.nextInt()), val skip: Int? = null, val requestedMinArgs: Int? = null, val maxArgs: Int? = null, val activeArgsRangeDecider: String = ProfileBasedArgsRangeDecider::class.qualifiedName ?: error( "cannot determine qualified name of ${ProfileBasedArgsRangeDecider::class.simpleName} " ), val activeSuffixArgsGeneratorDecider: String = SuffixArgsGeneratorNeverDecider::class.qualifiedName ?: error( "cannot determine qualified name of ${SuffixArgsGeneratorNeverDecider::class.simpleName} " ), val defaultProfile: String = TestType.Integration.name, val activeEnv: String = Env.Local.name, val testProfiles: TestProfiles = defaultTestProfiles)(source)

The configuration of Variist which steers the generation of values.

Since

2.0.0

Constructors

Link copied to clipboard
constructor(seed: Seed = Seed(Random.nextInt()), skip: Int? = null, requestedMinArgs: Int? = null, maxArgs: Int? = null, activeArgsRangeDecider: String = ProfileBasedArgsRangeDecider::class.qualifiedName ?: error( "cannot determine qualified name of ${ProfileBasedArgsRangeDecider::class.simpleName} " ), activeSuffixArgsGeneratorDecider: String = SuffixArgsGeneratorNeverDecider::class.qualifiedName ?: error( "cannot determine qualified name of ${SuffixArgsGeneratorNeverDecider::class.simpleName} " ), defaultProfile: String = TestType.Integration.name, activeEnv: String = Env.Local.name, testProfiles: TestProfiles = defaultTestProfiles)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Defines which ArgsRangeDecider shall be used identified via fully qualified name. Per default, the corresponding class is loaded via java.util.ServiceLoader.

Link copied to clipboard

Defines on which environment you want to run tests. The chosen name needs to be configured in testProfiles.

Link copied to clipboard

Defines which SuffixArgsGeneratorDecider shall be used identified via fully qualified name. Per default, the corresponding class is loaded via java.util.ServiceLoader.

Link copied to clipboard

Defines which test profile is chosen in case none is specified via ArgsRangeOptions.profile. The chosen name needs to be configured in testProfiles.

Link copied to clipboard
val maxArgs: Int? = null

Should influence an ArgsRangeDecider's choice of ArgsRange.take, signaling that it should not be greater than the specified amount.

Link copied to clipboard
val requestedMinArgs: Int? = null

Influences an ArgsRangeDecider's choice of ArgsRange.take, signaling that it should be at least the specified amount, unless the ArgsGenerator repeats values beforehand.

Link copied to clipboard
val seed: Seed

The seed which Variist uses internally for Random.

Link copied to clipboard
val skip: Int? = null

Influences an ArgsRangeDecider's choice of ArgsRange.offset, i.e. allows to skip certain test cases.

Link copied to clipboard

Allows to define different profiles with different associated TestConfig per env.

Functions

Link copied to clipboard
Link copied to clipboard