-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.test.example
More file actions
94 lines (75 loc) · 2.33 KB
/
Copy path.env.test.example
File metadata and controls
94 lines (75 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# E2E Testing Environment Configuration
# Copy this file to .env.test and update with your test database credentials
# Test Database Configuration
# Use a separate test database to avoid affecting development data
TEST_SUPABASE_URL=your_test_supabase_url_here
TEST_SUPABASE_SERVICE_KEY=your_test_service_key_here
TEST_SUPABASE_ANON_KEY=your_test_anon_key_here
# Alternative: Use main database for testing (not recommended for CI)
# SUPABASE_URL=your_supabase_url_here
# SUPABASE_SERVICE_KEY=your_service_key_here
# SUPABASE_ANON_KEY=your_anon_key_here
# Test Environment Settings
NODE_ENV=test
TEST_MODE=true
# E2E Test Configuration
E2E_BASE_URL=http://localhost:3000
E2E_TIMEOUT=30000
E2E_WORKERS=2
# Test User Configuration
# These users will be created automatically by the test setup
TEST_ADMIN_EMAIL=next-saas-admin@mailinator.com
TEST_ADMIN_PASSWORD=AdminTest123!
TEST_USER_EMAIL=next-saas-user@mailinator.com
TEST_USER_PASSWORD=UserTest123!
# Mailinator Configuration for Email Testing
# No configuration needed - uses public Mailinator service
MAILINATOR_BASE_URL=https://www.mailinator.com
# Test File Storage (if using local storage for testing)
TEST_STORAGE_PATH=./test-storage
TEST_AVATAR_PATH=./test-storage/avatars
TEST_EXPORT_PATH=./test-storage/exports
# Browser Configuration for E2E Tests
E2E_BROWSER_HEADLESS=true
E2E_BROWSER_SLOW_MO=0
E2E_VIDEO_MODE=retain-on-failure
E2E_SCREENSHOT_MODE=only-on-failure
# Test Data Configuration
TEST_DATA_RESET_ON_START=true
TEST_DATA_CLEANUP_ON_END=true
PRESERVE_CORE_TEST_USERS=true
# Debug Configuration
E2E_DEBUG=false
E2E_TRACE=false
E2E_DEBUG_CONSOLE=false
# CI/CD Configuration
CI=false
GITHUB_ACTIONS=false
# Notification Configuration (for test result notifications)
SLACK_WEBHOOK_URL=
DISCORD_WEBHOOK_URL=
# Performance Testing
E2E_PERFORMANCE_BUDGET_LCP=2500
E2E_PERFORMANCE_BUDGET_FID=100
E2E_PERFORMANCE_BUDGET_CLS=0.1
# Security Testing
E2E_SECURITY_TESTS=true
E2E_ACCESSIBILITY_TESTS=true
# Mobile Testing Configuration
E2E_MOBILE_TESTS=true
E2E_TABLET_TESTS=true
E2E_DESKTOP_TESTS=true
# Test Reporting
E2E_REPORT_FORMAT=html
E2E_REPORT_OPEN=false
E2E_REPORT_PATH=./e2e-report
# Retry Configuration
E2E_RETRY_COUNT=2
E2E_RETRY_DELAY=1000
# Test Isolation
E2E_TEST_ISOLATION=true
E2E_PARALLEL_TESTS=true
# Development Helpers
E2E_PAUSE_ON_FAILURE=false
E2E_SAVE_VIDEOS=false
E2E_SAVE_TRACES=false