Expand description
Integration tests against an Axum service, without TCP or background servers.
Structs§
- Factory
Builder - A factory and its explicit database/transaction. Own field defaults in application code.
- Session
Request - A session request borrowing the cookie jar until its response is received.
- TestApp
- An in-process application using the normal factory, isolated data and real middleware.
Prefer
TestApp::boot(application());new(router)remains the low-level adapter. - Test
AppBuilder - Test setup using the real application factory’s App value.
- Test
Request - A fluent request builder used only in tests; invalid requests panic clearly.
- Test
Response - A fully buffered test response with chainable assertions.
- Test
Session - An independent single-origin HTTP session using real auth and CSRF routes. Cookies honor origin, path, expiry and Secure; this is not a full browser or CORS emulator. Secrets are never included in this type’s Debug output.
Enums§
- Test
Database - Databases provisioned by the test harness. No application database URL is used implicitly.
Traits§
- Factory
- An application-owned record builder. Implement with native SeaORM operations. Passing a borrowed connection permits both a pool and an existing transaction.
- Test
Application - Adapter implemented by Capy’s normal App builder, not a separate test router.