2 ms·
FWIW, I’m fond of a testing technique where the entire “exchange” of a request/response for a HTTP handler test case is committed to the repo. If the result do
by cdogl 3y ago
FWIW, I’m fond of a testing technique where the entire “exchange” of a request/response for a HTTP handler test case is committed to the repo.
If the result doesn’t match what’s in the file, the test fails. You can run the tests with a special flag to update them in place.
It gives great regression coverage on that edge of the system and it can easily be done with a good language HTTP library.