feat: configure UAT test automation and reporting

This commit is contained in:
张翔
2026-03-25 09:52:27 +08:00
parent d7ad5776f8
commit f0efbaeabd
6 changed files with 329 additions and 0 deletions
+26
View File
@@ -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