๐งช trillium-testing โ test utilities for Trillium apps
Testing utilities for Trillium applications. Provides assertion macros (assert_ok!, assert_status!, assert_response!, assert_not_handled!), a TestConn builder for constructing requests, and a synchronous test runner โ no real TCP listener needed. Enable one of the tokio, smol, or async-std cargo features to select the async runtime.
Example
use Conn;
use *;
async
assert_ok!;
assert_not_handled!;
Safety
This crate uses #![forbid(unsafe_code)].