From cda9e2fc251fdf4d85bbd30437ca5c682d98beda Mon Sep 17 00:00:00 2001 From: oabrivard Date: Thu, 26 Mar 2026 10:43:59 +0100 Subject: [PATCH] fix: pass all args to cargo test in integration test script Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/run-integration-tests.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/run-integration-tests.sh b/scripts/run-integration-tests.sh index 052700a..1efb42c 100755 --- a/scripts/run-integration-tests.sh +++ b/scripts/run-integration-tests.sh @@ -4,8 +4,13 @@ # Starts a Postgres container, runs tests, then cleans up. # # Usage: -# ./scripts/run-integration-tests.sh # run all integration tests -# ./scripts/run-integration-tests.sh pipeline # run only pipeline_test +# ./scripts/run-integration-tests.sh # all tests +# ./scripts/run-integration-tests.sh --test pipeline_test # one test file +# ./scripts/run-integration-tests.sh --test api_admin_test config_providers # one test by name +# ./scripts/run-integration-tests.sh --test api_admin_test -- --test-threads=1 # extra cargo args +# ./scripts/run-integration-tests.sh --lib # unit tests only +# +# All arguments are passed directly to `cargo test`. # set -euo pipefail @@ -58,11 +63,11 @@ echo "=== Running integration tests ===" cd "$PROJECT_DIR/backend" if [ $# -gt 0 ]; then - echo "Running: cargo test --test $1 -- --nocapture" - cargo test --test "$1" -- --nocapture + echo "Running: cargo test $*" + cargo test "$@" else echo "Running: cargo test (all integration + unit tests)" - cargo test -- --nocapture + cargo test fi echo "=== All tests passed ==="