Aduket - Straight-forward HTTP Client Testing, Assertions Included
Straight-forward HTTP client testing, assertions included!
Simple httptest.Server
wrapper with a little request recorder spice on it. No special DSL, no complex API to learn. Just create a server and fire your request like an Hadouken then assert them.TODO
- Add example usages
- Add docs
- Add response headers to NewServer
- Add request header assertions
- Add multiple request assertion logic
- Extract Request().Body to requestRecorder.Body binding logic to CustomBinder
- Add NewServerWithTimeout for testing API timeouts
- http.RoundTripper interface can be implemented to mock arbitrary URLs
- A Builder can be written to NewServer for ease of use
Via: feedproxy.google.com
Aduket - Straight-forward HTTP Client Testing, Assertions Included
Reviewed by Anónimo
on
18:03
Rating:
![Aduket - Straight-forward HTTP Client Testing, Assertions Included](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTvKqUYtkKM3tibfZ6JvDLrcAKVCh_X3mG5hXZIc_N4FXL21RVXXD58wjNylRTTBQ85T2FzwG-FNPRU4BXBnXX6XAVOiqUZdSRlevHgz6DgHiYIUlYUnWNJHao4m-Vxh54iBLiWMsPdvgh/s72-c/aduket_1_aduket.gif)