Expand description
Framework-style test harness for Sova.
SqliteTestDb— tempfile sqlite + migrateTestApp— App bootstrap with Db + pluginsResponseAssert/assert_json_snapshot— uniform response checks
Auth / notifications acting_as helpers stay in those plugins’ test utils so
this crate can publish to crates.io without a dependency cycle.
Macros§
- assert_
json_ snapshot - Assert JSON snapshot with common redactions (
id, timestamps).
Structs§
- Sqlite
Test Db - Isolated sqlite file + URL. Keeps
TempDiralive for the test duration. - TestApp
- Fluent bootstrap: migrate sqlite, install
Db+ plugins,run_startup. - Test
AppBuilder
Traits§
- Response
Assert - Fluent assertions for HTTP responses in tests.
Functions§
- apply_
migrations - Run each migration’s
upwithout sea-orm’s version tracker. - with_
json_ redactions - Redact volatile fields commonly present in API JSON.