forked from oxen-io/session-appium
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplaywright.config.ts
28 lines (25 loc) · 967 Bytes
/
playwright.config.ts
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
import dotenv from 'dotenv';
dotenv.config();
import { defineConfig } from '@playwright/test';
import {
getRepeatEachCount,
getRetriesCount,
getWorkersCount,
} from './run/test/specs/utils/binaries';
const useSessionReporter = true;
// NOTE: without this, the wrong source map is loaded and the stacktraces are all wrong
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('source-map-support').install = () => {};
export default defineConfig({
timeout: 480000,
globalTimeout: 18000000, // extends timeout to 5 hours run full suite with 3 retries
reporter: [useSessionReporter ? ['./sessionReporter.ts'] : ['list']],
testDir: './run/test/specs',
testIgnore: '*.js',
// outputDir: './tests/automation/test-results',
retries: getRetriesCount(),
repeatEach: getRepeatEachCount(),
workers: getWorkersCount(),
reportSlowTests: null,
fullyParallel: true, // otherwise, tests in the same file are not run in parallel
});