Files
aperonight/test.sh
Kevin BATAILLE 884c6a8262 feat(auth): enhance user registration with names and improve UI
- Add first_name and last_name fields to User model with validations
- Configure Devise registrations controller to accept name parameters
- Update registration form with name fields and improved styling
- Replace Twitter Bootstrap pagination with custom Tailwind components
- Add French locale translations for pagination and models
- Update header styling with responsive design improvements
- Add EditorConfig for consistent code formatting
- Fix logout controller URL handling and improve JavaScript
- Update seed data and test fixtures with name attributes
- Add comprehensive model tests for name validations
- Add test.sh script for easier test execution

💘 Generated with Crush
Co-Authored-By: Crush <crush@charm.land>
2025-08-26 17:17:50 +02:00

19 lines
533 B
Bash

#!/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