Files
novalon-manage-system/uat-tests/run-uat-tests.sh
T

27 lines
569 B
Bash
Executable File

#!/bin/bash
set -e
echo "🚀 Starting UAT Test Suite..."
cd "$(dirname "$0")"
if [ ! -f ".env" ]; then
echo "⚠️ Warning: .env file not found, using default values"
cp .env.example .env
fi
export $(cat .env | xargs)
echo "📊 Running UAT tests..."
npx playwright test --config=playwright.config.ts
if [ $? -eq 0 ]; then
echo "✅ All UAT tests passed!"
echo "📈 Generating test report..."
npx playwright show-report uat-tests/test-results/html-report
else
echo "❌ Some tests failed. Check the report for details."
exit 1
fi