| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/project-slim/tests/ |
Upload File : |
#!/bin/bash
# Simple Test Runner Script for Slim Framework API
# This script provides quick access to run tests
echo "๐งช SLIM API - QUICK TEST RUNNER"
echo "================================"
echo ""
cd "$(dirname "$0")"
echo "๐ Current directory: $(pwd)"
echo "๐ Available tests:"
echo ""
# List available test files
for file in test_*.php; do
if [ -f "$file" ]; then
echo " โข $file"
fi
done
echo ""
echo "๐ QUICK ACTIONS:"
echo "1. Run validation tests (recommended)"
echo "2. Run multi-error validation test"
echo "3. Run all tests"
echo "4. Interactive test runner"
echo ""
read -p "๐ Choose option (1-4): " choice
case $choice in
1)
echo ""
echo "โถ๏ธ Running validation tests..."
echo "================================"
php test_validation_direct.php
;;
2)
echo ""
echo "โถ๏ธ Running multi-error validation test..."
echo "=========================================="
php test_multi_validation_errors.php
;;
3)
echo ""
echo "โถ๏ธ Running all tests..."
echo "======================="
for file in test_*.php; do
if [ -f "$file" ]; then
echo ""
echo "--- Running $file ---"
php "$file"
echo ""
fi
done
;;
4)
echo ""
echo "โถ๏ธ Starting interactive test runner..."
echo "======================================"
php run_tests.php
;;
*)
echo "โ Invalid choice"
;;
esac
echo ""
echo "โ
Test execution completed!"