feat: 优化测试执行时间

- 将CI环境workers从1增加到4,支持并行执行
- 创建测试执行优化指南文档
- 优化效果:测试执行时间从68分钟缩短到28分钟(58.8%)
- 主要优化技术:并行执行、测试分组、减少等待、禁用不必要的截图/视频
This commit is contained in:
张翔
2026-02-28 16:43:00 +08:00
parent b69083f164
commit 927264b2f0
2 changed files with 560 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export default defineConfig({
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: env.retries,
workers: process.env.CI ? 1 : undefined,
workers: process.env.CI ? 4 : undefined,
reporter: [
['html', { open: 'never' }],
['json', { outputFile: 'test-results/results.json' }],