Files
aperonight/test.sh
Kevin BATAILLE 30f3ecc6ad refactor(events): replace parties concept with events throughout the application
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.
2025-08-28 13:20:51 +02:00

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