Test generation flow¶
At a high level, generation follows a fixed pipeline per OpenAPI operation.
High-level pipeline¶
- Parse OpenAPI The engine parses and fully resolves the OpenAPI model.
- Filter operations If
includeOperationsis set, the engine filters paths/methods before generation.ignoreTestCasesis applied later, after suites are assembled. - Build valid case
ValidCaseBuilderbuilds a baseline validTestCase. - Create context
TestGenerationContextis created with the OpenAPI model, operation, valid case, and helpers (example value generator, schema merger, budgets). - Run providers Providers execute in a fixed order:
- auth
- parameters
- request body
- Aggregate outcomes Provider outcomes are merged into
Outcome<TestSuite>. IfincludeValidCaseis enabled, the baseline valid case (with 2xx expected status) is prepended to the test list. Budgets and error handling determine whether the result is success, partial success, or failure. - Write artifacts An
ArtifactGeneratoremits outputs (template-based code or JSON/YAML suites).
Outputs¶
TestSuite: operation-level container (operationNameis the stable identifier).TestCase: individual scenario (request inputs + expected status/body).GenerationReport: aggregated suites + errors + summary (success/partial/failure/not-tested).
See also: