uplink
uplink copied to clipboard
httpbin for more comprehensive testing ?
Is your feature request related to a problem? Please describe. I am trying to run various tests for some features of REST with various async implementations... Currently the examples use a simple flask app, which is good for looking into the details, but doesn't have the large coverage of existing solution, and might not be friendly enough to run for some users...
Describe the solution you'd like Leveraging httpbin.org would be a quick way to have an large API and integration tests... What do you think about it ?
@asmodehn - I think that this would be a good approach for an end-to-end test suite. These tests would run occasionally (i.e., not on every commit, but maybe weekly and before each minor and major release).
For integration tests that run on every commit and PR, I posit that using an external service like httpbin increases the risk of flaky test results and long build times, hence potentially reducing development velocity. But again, I think this would be great for the large API e2e tests!
On the topic of integration tests: to help users test their own consumers against different I/O models without needing to make actual network requests against an external service, it might be helpful for us to expose the MockClient that we use in our own integration test suite.