feat: configure UAT test automation and reporting
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user