TestGenerationSettingsExtension

open class TestGenerationSettingsExtension @Inject constructor(objects: ObjectFactory)

Gradle-native typed configuration block for test generation settings.

Provides IDE autocomplete and compile-time validation for all test generation settings.

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory)

Properties

Link copied to clipboard
@get:Input
@get:Optional
val errorMode: Property<ErrorMode>

Error handling mode: FAIL_FAST or COLLECT_ALL.

Link copied to clipboard
@get:Input
@get:Optional
val exampleValues: MapProperty<String, Any>

Schema-derived example value generation settings (raw map, passed to core as-is).

Link copied to clipboard
@get:Input
@get:Optional
val ignoreAuthValidationRules: SetProperty<String>

Set of auth validation rule class names to ignore.

Link copied to clipboard
@get:Input
@get:Optional
val ignoreSchemaValidationRules: SetProperty<String>

Set of schema validation rule class names to ignore.

Link copied to clipboard
@get:Input
@get:Optional
val ignoreTestCases: MapProperty<String, Any>

Map of operation patterns to ignore during test generation.

Link copied to clipboard
@get:Input
@get:Optional
val maxErrors: Property<Int>

Maximum number of errors to collect before stopping.

Link copied to clipboard
@get:Input
@get:Optional
val maxMergedSchemaDepth: Property<Int>

Maximum depth used when merging composed schemas (allOf/anyOf/oneOf).

Link copied to clipboard
@get:Input
@get:Optional
val maxSchemaCombinations: Property<Int>

Maximum number of schema combinations to generate.

Link copied to clipboard
@get:Input
@get:Optional
val maxSchemaDepth: Property<Int>

Maximum depth for recursive schema traversal.

Link copied to clipboard
@get:Input
@get:Optional
val maxTestCasesPerOperation: Property<Int>

Maximum number of test cases per operation.

Link copied to clipboard
@get:Input
@get:Optional
val overrideBasicTestData: MapProperty<String, String>

Override values for basic test data generation.

Link copied to clipboard
@get:Input
@get:Optional
val patternGeneration: MapProperty<String, Any>

Pattern generation options used by regexp-gen for pattern-based value generation.

Link copied to clipboard
@get:Input
@get:Optional
val validSecurityValues: MapProperty<String, String>

Valid security values for authenticated requests (e.g., API keys, tokens).

Functions