Module: distribution-bundle¶
distribution-bundle is the shared "product layer" used by both the CLI and the Gradle plugin. It bundles feature modules and exposes a stable execution entry point.
Depends on¶
coregenerator-templatepattern-support
Used by¶
cliplugin
Key entry points¶
TestGenerationRunner¶
Runs a generation end-to-end with configurable modules and reporting:
- Merges config + overrides into
TestGeneratorExecutionOptions - Extracts module settings (e.g., pattern generation options)
- Creates modules via a
ModuleFactory - Generates a
GenerationReport - Writes artifacts when generation succeeds or
alwaysWriteTestsis set
Use withDefaults(reporter) for standard wiring or the builder for customization.
TestGenerationReporter¶
Output abstraction allowing environment-specific logging:
- CLI uses
Slf4jReporterwhich delegates formatting to coreConsoleReporter - Gradle uses a logger adapter that routes to
project.logger
DistributionDefaults¶
Factory for standard modules, settings, and extractors:
- Modules:
TemplateGeneratorModule,PatternSupportModule - Extractors:
PatternModuleSettingsExtractor - Settings: inserts provider id
patternbeforeplain-stringin example-value order
Extending the distribution¶
For embedding/integration scenarios, prefer:
TestGenerationRunner.builder()to add modules or custom reportersTestGenerationEngine(fromcore) if you want finer control over orchestration
API reference¶
- Local Dokka output:
docs/api/openapi.testgen.distribution-bundle/index.html
Related docs¶
- Concepts: Architecture
- How-to:
- Custom modules
- Custom generators
- Modules:
- Core module
- Pattern support