Commit 7d036c7
committed
feat(testing): add SQLx/Rust test framework infrastructure
Add comprehensive Rust/SQLx testing infrastructure to replace pgTAP:
**Core Framework:**
- Create tests/sqlx crate with fluent assertion API
- Add selector constants to eliminate magic string literals
- Implement query assertion builder for ergonomic test writing
**Test Infrastructure:**
- Add SQLx migrations for EQL installation and test helpers
- Add SQL fixtures for test data seeding
- Configure Cargo workspace integration
**Tooling & Scripts:**
- Add mise tasks for test execution and coverage tracking
- Add assertion counting and comparison tools
- Add function call tracking for coverage analysis
- Add test inventory generator
- Add master coverage check script
**Configuration:**
- Update Docker Compose with track_functions enabled
- Add generated migration files to gitignore
- Update mise.toml with Rust test tasks
**Migration:**
- Remove pgTAP testing infrastructure (Dockerfile, tests, scripts)
- Add SQL-to-SQLx migration guide documentation
- Add assertion count and test inventory docs
This infrastructure enables writing Rust tests with SQLx queries instead
of pgTAP, providing better IDE support, type safety, and debugging.1 parent 134b664 commit 7d036c7
File tree
36 files changed
+3674
-2229
lines changed- docs
- plans
- tasks
- tests
- pgtap
- functionality
- structure
- sqlx
- fixtures
- migrations
- src
- tools
36 files changed
+3674
-2229
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments