httpexpect icon indicating copy to clipboard operation
httpexpect copied to clipboard

End-to-end HTTP and REST API testing for Go.

Results 44 httpexpect issues
Sort by recently updated
recently updated
newest added

## Problem Currently we're missing the following features: * the user can't register a hook that will be invoked on every performed assertion including successful ones; e.g. this could be...

help wanted
refactoring

like `WithForm/WithJSON`

enhancement
help wanted

I've written all required unit tests for success and failure scenarios for AssertionContext needed for https://github.com/gavv/httpexpect/issues/269 Placed it under `expect_test.go` I've implemented a new interface for AssertionHandler that stores context...

The `form.EncodeToValues` interface used in the `WithQueryObject` function will escape the `empty value` in the `query object` into an empty string `""`, such as the number `0`, or a length...

Add a test to expect_test.go that verifies that: * AssertionContext.Request points to correct request * AssertionContext.Response points to correct response When: * request reports failure (only AssertionContext.Request is set in...

tests
help wanted

Add new method Request.WithLimit that set's a limit for maximum number of bytes that can be retrieved from response body. It can be helpful to interrupt early on abnormally large...

feature
help wanted
waiting reply

Closes #205

ready for review

Resolves https://github.com/gavv/httpexpect/issues/427

ready for review

Add new example to `_examples` directory (say, `tls.go` and `tls_test.go`) that runs small TLS server with hardcoded certificates and tests it using httpexpect. Example can be based on https://go.googlesource.com/go/+/dev.boringcrypto/src/crypto/tls/example_test.go Add...

help wanted
good first issue
examples

Context: My test is as simple as: ```go e.GET("/nginx"). WithMaxRetries(10). WithRetryDelay(time.Second, time.Second*2). WithRetryPolicy(httpexpect.RetryAllErrors). Expect(). Status(http.StatusNotFound). Body().Contains(`nginx/`) ``` I'm expecting a dynamic result from one call to the other. And I'd...

feature
help wanted
good first issue