Skip to content

Commit 1995ef8

Browse files
committed
feat: add CDC test cases and update test-all to include CDC tests
1 parent 2fb7a9b commit 1995ef8

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

justfile

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ test-dbio-api:
8383
cd core/dbio/api && go test -v && cd -
8484
8585
# Test all dbio
86-
test-dbio: test-dbio-connection test-dbio-iop test-dbio-database test-dbio-api test-dbio-filesys
86+
test-dbio: test-dbio-connection test-dbio-iop test-dbio-database test-dbio-api # test-dbio-filesys
8787

8888
# Test Python (default, without ARROW)
8989
test-python-main:
9090
#!/usr/bin/env bash
9191
echo "TESTING Python"
9292
export SLING_BINARY="$PWD/cmd/sling/sling"
9393
cd ../sling-python/sling && python -m pytest tests/tests.py -v && cd -
94+
cd ../sling-python/sling && python -m pytest tests/test_api_spec.py -v && cd -
9495
9596
# Test Python class without ARROW
9697
test-python-arrow-false:
@@ -109,8 +110,31 @@ test-python-arrow-true:
109110
# Run all Python tests
110111
test-python: test-python-main test-python-arrow-false test-python-arrow-true
111112

113+
test-cdc-basic:
114+
#!/usr/bin/env bash
115+
cd ../sling && bash scripts/test.cdc.sh basic && cd -
116+
117+
test-cdc-soft-delete:
118+
#!/usr/bin/env bash
119+
cd ../sling && bash scripts/test.cdc.sh soft_delete && cd -
120+
121+
test-cdc-soft-replay:
122+
#!/usr/bin/env bash
123+
cd ../sling && bash scripts/test.cdc.sh replay && cd -
124+
125+
test-cdc-soft-sustained:
126+
#!/usr/bin/env bash
127+
cd ../sling && bash scripts/test.cdc.sh sustained && cd -
128+
129+
# Run all CDC test
130+
test-cdc: test-cdc-basic test-cdc-soft-delete test-cdc-soft-replay test-cdc-soft-sustained
131+
112132
# Run all tests
113-
test-all: test-cli test-connections test-dbio test-core test-python
133+
test-all: test-cli test-connections test-dbio test-core test-python test-cdc
134+
#!/usr/bin/env bash
135+
echo "✓ All tests passed!"
136+
137+
test-dbio-core-python: test-dbio test-core test-python
114138
#!/usr/bin/env bash
115139
echo "✓ All tests passed!"
116140

0 commit comments

Comments
 (0)