Files
bruno/playwright.config.ts
Sanjai Kumar c5325c732f feat: enhance environment variable persistence handling (#5783)
* feat: enhance environment variable persistence handling

* feat: experiment playwright with multiple workers

---------

Co-authored-by: Bijin Bruno <bijin@usebruno.com>
2025-10-25 19:02:45 +05:30

49 lines
1.0 KiB
TypeScript

import { defineConfig } from '@playwright/test';
const reporter: any[] = [['list'], ['html']];
if (process.env.CI) {
reporter.push(['github']);
}
export default defineConfig({
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? undefined : 3,
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
]
},
{
name: 'ssl',
testDir: './tests/ssl'
}
],
webServer: [
{
command: 'npm run dev:web',
url: 'http://localhost:3000',
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
}
]
});