Skip to main content

Module test_support

Module test_support 

Source
Expand description

Test infrastructure for #[bsql::test].

Creates isolated PostgreSQL schemas per test for parallel execution. Fixtures (SQL files) are applied to the schema before the test runs. Schema is dropped after the test – even on panic.

Structs§

TestContext
Test context holding the pool and cleanup info. Drops the schema on cleanup.

Functions§

setup_test_schema
Set up an isolated test schema with fixtures.