-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
36 lines (30 loc) · 893 Bytes
/
playwright.config.ts
File metadata and controls
36 lines (30 loc) · 893 Bytes
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
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './src/e2e-tests',
timeout: 480 * 1000, // 8 minutes - longer than vcpkg polling timeout of 7 minutes
expect: {
timeout: 5000,
},
/* Run tests in files in parallel */
fullyParallel: false,
workers: 1,
retries: 0,
reporter: [
['list'],
['html', { outputFolder: 'e2e-report' }],
['junit', { outputFile: 'e2e-report/results.xml' }],
],
use: {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'vscode-extension',
testMatch: /.*\.test\.ts/,
},
],
// Output directory for test artifacts
outputDir: 'test-results/',
});