test: [ENG-08] add verified TS coverage and paired performance reports

This commit is contained in:
Harvey Zhao committed 2026-09-11 22:01:48 +08:00
1 parent 8ed0a5228c
commit 4a9a26d4fc
38 files changed
+24335 -61

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import assert from 'node:assert/strict'
import process from 'node:process'
import { defineConfig } from '@playwright/test'
import base from './playwright.config.js'
assert(process.env.ARTPLAYER_BROWSER_ARTIFACTS, 'Performance requires ARTPLAYER_BROWSER_ARTIFACTS from yarn test:package')
export default defineConfig({
...base,
testDir: './test/performance',
timeout: 180000,
fullyParallel: false,
workers: 1,
outputDir: 'refactor/.cache/performance/browser/results',
reporter: [
['list'],
['json', { outputFile: 'refactor/.cache/performance/browser/report.json' }],
],
use: {
...base.use,
trace: 'off',
video: 'off',
screenshot: 'only-on-failure',
},
})