mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
test: [ENG-08] add verified TS coverage and paired performance reports
This commit is contained in:
1 parent
8ed0a5228c
commit
4a9a26d4fc
38 files changed
+24335
-61
No files matched your search
@@ -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',
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user