gavv/httpexpect
End-to-end HTTP and REST API testing for Go. observed · 2026-08-28
Health v2 · maintenance only
47/100
- Activity 53
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3778
- days_rel: 547
- days_push: 287
- n_releases_24m: 1
Adoption not part of the score
2725 stars · 242 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
httpexpect is a Go library providing concise, declarative end-to-end HTTP and REST API testing via chainable request builders and response/payload assertions. It supports JSON, forms, JSON Schema validation, JSONPath queries, and WebSocket testing on top of net/http.
Use cases
- test REST API endpoints in Go
- assert HTTP response status headers and JSON payloads
- validate API responses against JSON Schema
- test WebSocket servers from Go
- write end-to-end tests for HTTP services
- query JSON responses with JSONPath in tests
When to choose
- you write Go tests for HTTP/REST APIs and want fluent, chainable assertions
- you need JSON Schema validation or JSONPath queries inside API tests
- you want readable failure output with JSON diffs and testify integration
When to avoid
- you test non-HTTP protocols or need load/performance testing rather than functional testing
- your stack is not Go
- you only need a plain HTTP client without assertion helpers
Facets
library · maturity stable
testing e2e-testing http-client websocket testing apis web-development developer-tools go cli http-testing rest-api assertions json-schema jsonpath declarative
3 sources
- readme: https://github.com/gavv/httpexpect · fetched 2026-08-28 · 0665ba0d2620
- homepage: https://pkg.go.dev/github.com/gavv/httpexpect/v2 · fetched 2026-08-29 · dd2c509d3772
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gavv/httpexpect | main | 47 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem