-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Description
I saw these two issues raised recently,
- Sometimes our API specifications get outdated and out-of-sync with our implementation. we should always respect this contract, but how to make sure it is always respected and updated?
- We need to test our API functionality regularly to ensure it is working properly, a PR was submitted to run basic tests in a GitHub action. it will add one more thing to the stack that is needed also to keep in sync with every change.
I want to point out that there are many tools that can generate and run tests from the API specification.
e.g, schemathesis is an API testing tool that could run thousands of generated test cases given just the API schema.
This could solve these two issues and provides added benefits:
- The API specification is the source of truth, this will help us to improve the API and make sure that API specification remains in sync with the implementation. issue no1. solved.
- No tests code to write or maintain, less work. issue no.2 solved.
- Better coverage. the tool will run thousands of tests.
- GitHub action is available out of the box (for the suggested tool).
It is expected to have many falling tests when we start to use this tool, but I see this as a pro and a way to improve and fix invisible issues.
Metadata
Metadata
Assignees
Labels
grid-proxybelongs to grid proxybelongs to grid proxy