feat(tooling): audit_metrics.py — size, complexity, gate weight and a speed baseline

This commit is contained in:
2026-10-04 20:09:58 +02:00
parent 11d35910fd
commit c2bf8fb7f6
7 changed files with 399 additions and 4 deletions
+12
View File
@@ -61,5 +61,17 @@ export default defineConfig({
use: { ...devices["iPad (gen 7) landscape"], storageState: STORAGE_STATE },
dependencies: ["setup"],
},
// The speed baseline (e2e/speed.measure.ts): readings, not tests. Only when PW_SPEED is set —
// `scripts/audit_metrics.py --speed` sets it — so the e2e suite never runs it.
...(process.env.PW_SPEED
? [
{
name: "speed",
testMatch: /\.measure\.ts/,
use: { ...devices["Desktop Chrome"], storageState: STORAGE_STATE },
dependencies: ["setup"],
},
]
: []),
],
});