1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash set -euo pipefail echo "Running tests..." if command -v cargo-nextest &>/dev/null; then cargo nextest run --workspace else cargo test --workspace fi echo "Tests OK"