TestCaseProvider

interface TestCaseProvider<T>

Produces derived test cases for a specific OpenAPI element.

Inputs: an OpenAPI element and a TestGenerationContext with a valid baseline case. Output: Outcome wrapping the generated test cases. Errors: providers should convert failures to Outcome.Failure (see runProviderSafely). Determinism: providers should preserve input order and avoid non-deterministic iteration.

Parameters

T

the OpenAPI element type this provider consumes (e.g., Operation, Parameter, RequestBody)

Functions

Link copied to clipboard
abstract fun provideTestCases(spec: T, context: TestGenerationContext): Outcome<List<TestCase>>

Returns Outcome with test cases generated from the given baseline valid case and OpenAPI element.