-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
68 lines (62 loc) · 1.75 KB
/
Copy pathplaywright.config.ts
File metadata and controls
68 lines (62 loc) · 1.75 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
import { defineConfig } from '@playwright/test';
const reporter: any[] = [['list'], ['html'], ['json', { outputFile: 'playwright-report/results.json' }]];
if (process.env.CI) {
reporter.push(['github']);
// Blob reports are mergeable across shards (see tests-linux.yml e2e-test-report).
reporter.push(['blob']);
}
export default defineConfig({
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: undefined,
reporter,
use: {
trace: process.env.CI ? 'on-first-retry' : 'on'
},
projects: [
{
name: 'default',
testDir: './tests',
testIgnore: [
'ssl/**', // custom CA certificate tests require separate server setup and certificate generation
'auth/**', // auth tests have their own project
'benchmarks/**',
'proxy/system-pac/**', // shares ports with proxy/pac — runs in its own project after default
'mock-server/**' // own project; workerIndex ports + per-worker Electron state
]
},
{
name: 'auth',
testDir: './tests/auth'
},
{
name: 'ssl',
testDir: './tests/ssl'
},
{
// system-pac and pac specs share the same PAC/proxy/target ports.
name: 'system-pac',
testDir: './tests/proxy/system-pac',
},
{
name: 'mock-server',
testDir: './tests/mock-server'
}
],
webServer: [
{
command: 'npm run dev:web',
stdout: 'pipe',
wait: { stdout: /ready\s+built in/i },
reuseExistingServer: !process.env.CI,
timeout: 10 * 60 * 1000
},
{
command: 'npm start --workspace=packages/bruno-tests',
url: 'http://localhost:8081/ping',
reuseExistingServer: !process.env.CI,
timeout: 10 * 60 * 1000
}
]
});