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 ==="