Registry / testing / pgrx-tests

pgrx-tests

JSON →
library0.18.1rscratesunverified

Test framework for pgrx-based PostgreSQL extensions.

# Cargo.toml [dependencies] pgrx-tests = "0.18.1"
INSTALL
IMPORT
SIG · PGRX-TESTS
P
pgrx-tests
testingrustv0.18.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pg_test
use pgrx_tests::pg_test;

Define a PostgreSQL extension test using pgrx-tests

use pgrx_tests::pg_test; #[pg_test] fn test_my_extension() { assert!(true); }
Debug
Known issues
gotchaRequires a running PostgreSQL instance for tests.
fix
Ensure PostgreSQL is installed and configured before running tests.
affects: *
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pgrx-tests — cargo add pgrx-tests · libregistry