pshtt icon indicating copy to clipboard operation
pshtt copied to clipboard

Unit tests for HTTP endpoints

Open konklone opened this issue 7 years ago • 0 comments

We need unit tests to measure behavior, to prevent regressions and to catch issues early. Testing against live endpoints is not recommended, and testing against a localhost HTTP server is not recommended.

I think we want to use something like vcrpy or betamax to capture and replay requests from particular endpoints. We could set up mock endpoints as necessary to capture other expected situations so that they remain recorded for future test runs.

Resolving this issue doesn't require unit testing every single thing, but it does require getting a solid mocked test harness in place with unit tests for at least a few example endpoint configurations, so we can build on that test suite over time.

konklone avatar Aug 20 '16 04:08 konklone