test(cache): 修复CacheConfigTest边界值测试

- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl
- 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE
- 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查
- 所有1266个测试用例通过
- 覆盖率: 指令81.89%, 行88.48%, 分支51.55%

docs: 添加项目状态报告
- 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态
- 包含质量指标、已完成功能、待办事项和技术债务
This commit is contained in:
Your Name
2026-03-02 13:31:54 +08:00
parent 32d6449ea4
commit 91a0b77f7a
2272 changed files with 221995 additions and 503 deletions

View File

@@ -0,0 +1,48 @@
const { defineConfig, devices } = require('@playwright/test');
const path = require('node:path');
const evidenceDir = process.env.E2E_EVIDENCE_DIR
? path.resolve(process.env.E2E_EVIDENCE_DIR)
: path.resolve(__dirname, '../evidence/run-unknown');
const chromiumPath = process.env.PLAYWRIGHT_CHROMIUM_PATH
|| '/home/long/.cache/ms-playwright/chromium-1200/chrome-linux64/chrome';
module.exports = defineConfig({
testDir: './e2e-admin/tests',
testMatch: ['**/*.spec.ts'],
fullyParallel: false,
workers: 1,
retries: 0,
timeout: 5 * 60 * 1000,
globalTimeout: 45 * 60 * 1000,
maxFailures: 1,
reporter: [
['list'],
['junit', { outputFile: path.join(evidenceDir, 'reports/junit.xml') }]
],
reportSlowTests: { max: 10, threshold: 30000 },
outputDir: path.join(evidenceDir, 'e2e'),
use: {
baseURL: process.env.E2E_BASE_URL || 'http://127.0.0.1:5174',
trace: 'on',
screenshot: 'only-on-failure',
video: 'on',
actionTimeout: 15000,
navigationTimeout: 30000,
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: {
executablePath: chromiumPath,
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']
}
},
},
],
});