- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl - 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE - 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查 - 所有1266个测试用例通过 - 覆盖率: 指令81.89%, 行88.48%, 分支51.55% docs: 添加项目状态报告 - 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态 - 包含质量指标、已完成功能、待办事项和技术债务
55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
const { defineConfig, devices } = require('@playwright/test');
|
||
|
||
/**
|
||
* Playwright E2E测试配置
|
||
* 蚊子项目端到端测试配置
|
||
*/
|
||
module.exports = defineConfig({
|
||
// 测试目录
|
||
testDir: './e2e',
|
||
|
||
// 测试文件匹配模式
|
||
testMatch: ['e2e/tests/**/*.spec.ts'],
|
||
|
||
// 忽略其他测试目录
|
||
testIgnore: ['**/h5/**', '**/admin/**', '**/node_modules/**'],
|
||
|
||
// 完全并行执行
|
||
fullyParallel: true,
|
||
|
||
// 重试策略
|
||
retries: 1,
|
||
|
||
// 并行工作进程数
|
||
workers: undefined,
|
||
|
||
// 测试报告器
|
||
reporter: [['list']],
|
||
|
||
// 共享配置
|
||
use: {
|
||
baseURL: 'http://localhost:5175',
|
||
apiBaseURL: 'http://localhost:8080',
|
||
trace: 'on-first-retry',
|
||
screenshot: 'only-on-failure',
|
||
actionTimeout: 15000,
|
||
navigationTimeout: 30000,
|
||
viewport: { width: 1280, height: 720 },
|
||
ignoreHTTPSErrors: true,
|
||
},
|
||
|
||
// 项目配置(只使用chromium简化)
|
||
projects: [
|
||
{
|
||
name: 'chromium',
|
||
use: {
|
||
browserName: 'chromium',
|
||
launchOptions: {
|
||
executablePath: '/home/long/.cache/ms-playwright/chromium-1200/chrome-linux64/chrome',
|
||
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']
|
||
}
|
||
},
|
||
},
|
||
],
|
||
});
|