{"id":72370,"library":"pgrx-tests","title":"pgrx-tests","description":"Test framework for pgrx-based PostgreSQL extensions.","status":"active","version":"0.18.1","language":"rust","source_language":null,"source_url":"https://github.com/pgcentralfoundation/pgrx","tags":["postgresql","testing","extension","pgrx"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\npgrx-tests = \"0.18.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add pgrx-tests","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"pg_test","correct":"use pgrx_tests::pg_test;"}],"quickstart":{"code":"use pgrx_tests::pg_test;\n\n#[pg_test]\nfn test_my_extension() {\n    assert!(true);\n}","lang":"rust","description":"Define a PostgreSQL extension test using pgrx-tests"},"warnings":[{"fix":"Ensure PostgreSQL is installed and configured before running tests.","message":"Requires a running PostgreSQL instance for tests.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'base':9 'extens':11,14 'framework':5 'pgrx':2,8,15 'pgrx-base':7 'pgrx-test':1 'postgresql':10,12 'test':3,4,13","created_at":"2026-06-17T18:38:18.742391+00:00","updated_at":"2026-06-17T18:38:18.742391+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pgcentralfoundation/pgrx/","github":"https://github.com/pgcentralfoundation/pgrx","docs":"https://docs.rs/pgrx-tests/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}