https://github.com/vehsamrak/resttest
Package for testing REST services in Golang (http handler functions)
https://github.com/vehsamrak/resttest
golang http-test rest resttest testing-library testing-tools
Last synced: 6 months ago
JSON representation
Package for testing REST services in Golang (http handler functions)
- Host: GitHub
- URL: https://github.com/vehsamrak/resttest
- Owner: vehsamrak
- License: gpl-3.0
- Created: 2017-12-19T22:14:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T20:40:11.000Z (about 7 years ago)
- Last Synced: 2025-08-10T04:41:31.913Z (8 months ago)
- Topics: golang, http-test, rest, resttest, testing-library, testing-tools
- Language: Go
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rest unit testing tool for Golang
=================================

## With `resttest` you can
* Emulate HTTP request to test resulting HTTP response
* Gather response body, code and headers to assert them
* Use GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT and TRACE HTTP verbs
* Unit test http handler functions
* Omit redundant dependencies in your tests
* Reduce complexity of tests
* Keep your tests simple to write, easy to maintain and clear to understand