mnahkies / openapi-code-generator

A code generation tool for openapi 3 / 3.1 specifications written in typescript, primarily aimed at generating typescript clients and server stubs. Other target languages may be added in future.
https://openapi-code-generator.nahkies.co.nz/
MIT License
20 stars 2 forks source link

feat: add e2e test suite #235

Closed mnahkies closed 2 months ago

mnahkies commented 2 months ago

Until now, whilst some of the unit tests execute specific pieces of generated code using the node:vm module, and the integration tests check that typescript is happy to build the code, we haven't had very comprehensive end-to-end tests in the repo.

This has meant manually checking changes in other (mostly private) projects, which is a bit of a pain and not very transparent.

This PR aims to add end to end tests that actually run a koa service, and make calls to it using a generated client. Coverage will be relatively low to begin with and iteratively improved on over time.

It will hopefully also serve as a decent sample of what a service using this project might look like.