fix: increase e2e test parallelism and timeout for CI
- Use 4 workers instead of 1 in CI for faster execution - Increase globalTimeout from 5 to 20 minutes for 1318 tests - With 4 workers, full test suite should complete in ~15 minutes
This commit is contained in:
parent
c133296ce6
commit
c8f167cec6
1 changed files with 4 additions and 4 deletions
|
|
@ -18,12 +18,12 @@ export default defineConfig({
|
|||
forbidOnly: !!process.env.CI,
|
||||
/* Retry on CI only */
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
/* Opt out of parallel tests on CI. */
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
/* Run with limited parallelism in CI to balance speed and stability */
|
||||
workers: process.env.CI ? 4 : undefined,
|
||||
/* Maximum time one test can run */
|
||||
timeout: 30 * 1000,
|
||||
/* Maximum time for entire test run */
|
||||
globalTimeout: 5 * 60 * 1000,
|
||||
/* Maximum time for entire test run (1318 tests with 4 workers ~15 minutes) */
|
||||
globalTimeout: 20 * 60 * 1000,
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
reporter: process.env.CI
|
||||
? [['list']]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue