OpenAPITools / OpenAPITools/openapi-generator
[REQ][Elixir] Generate ExUnit tests
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
I'm always frustrated when I have to write my own tests based on a given OpenAPI Spec with already valid example responses.
Describe the solution you'd like
Would be pretty great if the openapi-generator would create some ExUnit Tests based on the given examples or even create some own test data based on the given type.
Additional context
Something with https://github.com/PSPDFKit-labs/bypass would be great, this would also allow us to run the tests against a non-mock server to validate the response.
Maybe https://github.com/igas/faker could also come in handy
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the OpenAPI specification examples and the requested ExUnit output, then compare the possible Bypass and Faker approaches mentioned in the issue. Done means generated ExUnit tests cover valid example responses or generated data from the schema, with an option to run against a non-mock server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- api, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100