docs: add P0 summary report and update README with test docs

- Add comprehensive P0 summary report (.sisyphus/evidence/p0-summary.md)
- Update README.md with test infrastructure links and examples
- Add coverage thresholds to vitest.config.ts (global 70%, core 80%)
- Document 41.5% performance improvement (7.65s → 4.49s)

Related: test-optimization-p0 task-18
This commit is contained in:
ERPAuto Bot
2026-04-04 20:46:46 +08:00
parent d45b65fa44
commit 5d8563a4c9
2 changed files with 47 additions and 1 deletions

View File

@@ -18,7 +18,27 @@ export default defineConfig({
bail: process.env.CI ? 1 : undefined,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html']
reporter: ['text', 'json', 'html', 'lcov'],
thresholds: {
global: {
branches: 60,
functions: 70,
lines: 70,
statements: 70
},
'src/main/services/erp/**': {
branches: 70,
functions: 80,
lines: 80,
statements: 80
},
'src/main/services/update/**': {
branches: 70,
functions: 80,
lines: 80,
statements: 80
}
}
}
},
resolve: {