You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Python Integration/Validation Tests for pgFirstAid
2
+
3
+
This test harness runs pgFirstAid integration tests with `pytest`. One of the things I wanted to make sure this project does is validate each health check. While these tests might not be perfect, but the aim is to reduce the chances of a health check making its way into `main` and it fails to do its job.
4
+
5
+
6
+
It uses:
7
+
8
+
- Integration tests using (`psycopg`) for live runtime behavior(for checks looking for active connections)
9
+
- Execution of the pgTAP SQL suite sing Python
10
+
11
+
## What is covered
12
+
13
+
- pgTAP assertions grouped by severity (`testing/pgTAP/01_*.sql` to `06_*.sql`)
14
+
- Python integration scenarios that need concurrent sessions and timing control
15
+
- Function/view parity assertions
16
+
- A coverage guard test that ensures every `check_name` in `pgFirstAid.sql` is
17
+
referenced by at least one pgTAP assertion
18
+
19
+
## Configure connection
20
+
21
+
Set standard PostgreSQL environment variables before running tests:
0 commit comments