OpenAPI to Karate Generator
👉 ZenWave360 Helps You Create Software Easy to Understand
Generates test for KarateDSL based on OpenAPI and Arazzo specifications.
jbang zw -p io.zenwave360.sdk.plugins.OpenAPIKaratePlugin \
specFile=src/main/resources/model/openapi.yml \
targetFolder=src/test/resources \
testsPackage=io.zenwave360.example.adapters.web.tests \
groupBy=service
jbang zw -p io.zenwave360.sdk.plugins.OpenAPIKaratePlugin \
specFile=src/main/resources/model/openapi.yml \
targetFolder=src/test/resources \
testsPackage=io.zenwave360.example.adapters.web.tests \
groupBy=businessFlow \
businessFlowTestName=CustomerCRUDTest \
operationIds=createCustomer,getCustomer,updateCustomer,deleteCustomer
Options
Option | Description | Type | Default | Values |
---|---|---|---|---|
specFile | API Specification File | URI | Â | Â |
targetFolder | Target folder to generate code to. If left empty, it will print to stdout. | File | Â | Â |
basePackage | Applications base package | String | Â | Â |
testsPackage | Package name for generated tests | String | .adapters.web.tests | Â |
groupBy | Generate test classes grouped by | GroupByType | service | service, operation, partial, businessFlow |
operationIds | OpenAPI operationIds to generate code for | List | [] | Â |
businessFlowTestName | Business Flow Test name | String | Â | Â |
Getting Help
jbang zw -p io.zenwave360.sdk.plugins.OpenAPIKaratePlugin --help