lexivo/bin/prspec
2026-03-30 13:18:39 +02:00

24 lines
466 B
Bash
Executable File

#!/bin/bash
export SILENT_TESTS=${SILENT_TESTS:-}
OPTS=""
FILES=""
for arg in "$@"; do
if [[ "$arg" == -* ]]; then
OPTS="$OPTS $arg"
else
FILES="$FILES $arg"
fi
done
# Default to spec directory if no files specified
if [ -z "$FILES" ]; then
FILES="spec"
fi
echo "Running Parallel RSpec with options: $OPTS"
# FORMATTER="${FORMATTER:--f progress -f failures}"
bundle exec parallel_rspec --serialize-stdout --test-options "$FORMATTER$OPTS" $FILES