mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 17:29:58 +01:00
31 lines
806 B
TypeScript
31 lines
806 B
TypeScript
import { defineConfig } from '@playwright/test';
|
||
|
||
export default defineConfig({
|
||
testDir: './tests',
|
||
fullyParallel: true,
|
||
retries: process.env.CI ? 2 : 0,
|
||
workers: process.env.CI ? 4 : undefined,
|
||
reporter: [
|
||
['html', { outputFolder: 'playwright-report' }],
|
||
['junit', { outputFile: 'test-results/junit.xml' }],
|
||
],
|
||
use: {
|
||
baseURL: process.env.BASE_URL ?? 'http://localhost:8080',
|
||
extraHTTPHeaders: {
|
||
Accept: 'application/json',
|
||
'Content-Type': 'application/json',
|
||
},
|
||
},
|
||
projects: [
|
||
{
|
||
name: 'api',
|
||
testMatch: 'tests/api/**/*.spec.ts',
|
||
// Kein Browser nötig – reiner API-Test via request context
|
||
},
|
||
{
|
||
name: 'web-chromium',
|
||
testMatch: 'tests/web/**/*.spec.ts',
|
||
use: { browserName: 'chromium' },
|
||
},
|
||
],
|
||
});
|