Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
19 lines
533 B
Bash
Executable File
19 lines
533 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check if a directory/file argument is provided
|
|
if [ -n "$1" ]; then
|
|
# Get the test directory/file from the first argument
|
|
TEST_PATH="$1"
|
|
|
|
# Check if the provided argument is a directory or file
|
|
if [ -d "$TEST_PATH" ] || [ -f "$TEST_PATH" ]; then
|
|
# Run Rails tests in the specified directory/file
|
|
bundle exec rails test "$TEST_PATH"
|
|
else
|
|
echo "Error: $TEST_PATH is not a valid directory or file"
|
|
exit 1
|
|
fi
|
|
else
|
|
# Run Rails tests in the current directory
|
|
bundle exec rails test
|
|
fi |