TestGeneratorExtension

open class TestGeneratorExtension @Inject constructor(objects: ObjectFactory)

User-configurable extension for the OpenAPI Test Generator Gradle plugin.

Constructors

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

Properties

Link copied to clipboard
@get:Input
val alwaysWriteTests: Property<Boolean>

Flag to force writing tests even if there are errors on generation.

Link copied to clipboard
@get:Input
val configFile: Property<String>

Optional path to YAML config with all options.

Link copied to clipboard
@get:Input
val generator: Property<String>

Test framework to target (e.g., "template").

Link copied to clipboard
@get:Input
val generatorOptions: MapProperty<String, Any?>

Options passed to the underlying generator.

Link copied to clipboard
@get:Input
@get:Optional
val logLevel: Property<String>

Log level for generator logs (SLF4J backend).

Link copied to clipboard
@get:Input
val manualOnly: Property<Boolean>

If true, generation task will only run when invoked manually (no implicit wiring).

Link copied to clipboard
@get:Input
val outputDir: DirectoryProperty

Directory where generated tests will be written.

Link copied to clipboard
@get:Input
val specFile: Property<String>

Path to the OpenAPI specification file (relative to project root or absolute).

Link copied to clipboard

Type-safe test generation settings.

Functions

Link copied to clipboard

Configure test generation settings using type-safe DSL.