Skip to main content

Crate sova_testing

Crate sova_testing 

Source
Expand description

Framework-style test harness for Sova.

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§

SqliteTestDb
Isolated sqlite file + URL. Keeps TempDir alive for the test duration.
TestApp
Fluent bootstrap: migrate sqlite, install Db + plugins, run_startup.
TestAppBuilder

Traits§

ResponseAssert
Fluent assertions for HTTP responses in tests.

Functions§

apply_migrations
Run each migration’s up without sea-orm’s version tracker.
with_json_redactions
Redact volatile fields commonly present in API JSON.