Skip to content

Commit f9c1676

Browse files
committed
refactor: update test runner to use only SQLx tests
Remove legacy SQL test invocation from main test runner. Tests now run in 2 phases: 1. SQLx Rust lint checks 2. SQLx Rust tests
1 parent 41d41a3 commit f9c1676

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

tasks/test.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
2-
#MISE description="Run all tests (legacy SQL + SQLx Rust)"
3-
#USAGE flag "--test <test>" help="Test to run" default="false"
2+
#MISE description="Run all tests (SQLx Rust)"
43
#USAGE flag "--postgres <version>" help="PostgreSQL version to test against" default="17" {
54
#USAGE choices "14" "15" "16" "17"
65
#USAGE }
@@ -11,7 +10,7 @@ set -euo pipefail
1110
POSTGRES_VERSION=${usage_postgres}
1211

1312
echo "=========================================="
14-
echo "Running Complete EQL Test Suite"
13+
echo "Running EQL Test Suite"
1514
echo "PostgreSQL Version: $POSTGRES_VERSION"
1615
echo "=========================================="
1716
echo ""
@@ -26,21 +25,14 @@ mise run --output prefix build --force
2625
# Run lints on sqlx tests
2726
echo ""
2827
echo "=============================================="
29-
echo "1/3: Running linting checks on SQLx Rust tests"
28+
echo "1/2: Running linting checks on SQLx Rust tests"
3029
echo "=============================================="
3130
mise run --output prefix test:lint
3231

33-
# Run legacy SQL tests
34-
echo ""
35-
echo "=============================================="
36-
echo "2/3: Running Legacy SQL Tests"
37-
echo "=============================================="
38-
mise run --output prefix test:legacy --postgres ${POSTGRES_VERSION}
39-
4032
# Run SQLx Rust tests
4133
echo ""
4234
echo "=============================================="
43-
echo "3/3: Running SQLx Rust Tests"
35+
echo "2/2: Running SQLx Rust Tests"
4436
echo "=============================================="
4537
mise run --output prefix test:sqlx
4638

@@ -51,6 +43,5 @@ echo "=============================================="
5143
echo ""
5244
echo "Summary:"
5345
echo " ✓ SQLx Rust lint checks"
54-
echo " ✓ Legacy SQL tests"
5546
echo " ✓ SQLx Rust tests"
5647
echo ""

0 commit comments

Comments
 (0)