Skip to main content

Crate luxid_testing

Crate luxid_testing 

Source
Expand description

Test harness for Luxid applications.

Requests go through the real service — the same routing, middleware, container and adapter code production runs — so a passing test exercises the actual request path rather than a parallel one.

Assertions panic on failure, as test assertions should, and every message includes the response body. A test that fails with only “expected 200, got 500” costs a debugging session that the body would have saved.

Structs§

TestApp
An application under test.
TestRequest
TestResponse

Enums§

Method
Mirrors luxid::Method, and is #[non_exhaustive] for the same reason: a new verb should never break a test suite that matches on one.