mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
Merge pull request #4667 from usebruno/feature/playwright
Customize Playwright reporter and retries for dev and CI env
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
const reporter: string[][string] = [['list'], ['html']];
|
||||
|
||||
if (process.env.CI) {
|
||||
reporter.push(["github"]);
|
||||
}
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './e2e-tests',
|
||||
fullyParallel: false,
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
workers: process.env.CI ? undefined : 1,
|
||||
reporter: 'html',
|
||||
reporter,
|
||||
use: {
|
||||
trace: 'on-first-retry'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user