Skip to content

[REQ] Auto generated test samples, unit test, integration test #13854

Open
@OmarBouslama

Description

@OmarBouslama

Is your feature request related to a problem? Please describe.

We would like to auto generate tests from open API specs. I can see there testCase holder in this test API file : https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/python/api_test.handlebars#L40
but it is not clear how this works.

I found in the code

private static final String xSchemaTestExamplesRefPrefix = "#/components/x-schema-test-examples/";
that this may come from x-schema-test-examples but it is not clear how to add this to open API yaml

Could please add some example of open API specs that allow tests generation or explain this in the documentation

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions