Repository navigation
Releases: JosephLenton/axum-test
Releases · JosephLenton/axum-test
Release list
19.1.0
- Remove
TestServer::scheme, as it never actually worked with http requests only mocked requests. - Remove
TestRequest::scheme, as it never actually worked with http requests only mocked requests. - Mocked transport no longer provides the scheme and authority to the service, which matches the behaviour with Tokio / Hyper based services.
- Mocked now provides the
HOSTheader, which matches the behaviour with Hyper based HTTP services.
19.0.0
- Simplified constructors for
TestServer,TestServerBuilder, andTestServerConfig.new()constructor no longer returns a Result, and instead panics on failure.- Added
try_new()to allow people to continue to catch the Result if needed.
TestResponseassertion functions now return&self, allowing calls to be chained!- Requests using Reqwest will now share cookies with regular Axum Test requests.
- Cookies saved by one are saved to the other, and both adhere to
TestServer::save_cookies()andTestServer::do_not_save_cookies()commands.
- Cookies saved by one are saved to the other, and both adhere to
- Improved error messages across the API.
- JSON and Yaml assertions now output the body of the request when they fail.
- Removed deprecated feature
old-json-diff.