feat: add unified test runner and testing gate rule

Create v2/scripts/test-all.sh (vitest + cargo + optional E2E via --e2e).
Add npm scripts: test:all, test:all:e2e, test:cargo.
Add .claude/rules/20-testing-gate.md requiring full suite after major changes.
This commit is contained in:
Hibryda 2026-03-12 04:05:52 +01:00
parent 2e29ba5d9a
commit c5188757ad
3 changed files with 149 additions and 0 deletions

View file

@ -13,7 +13,10 @@
"tauri:dev": "cargo tauri dev",
"tauri:build": "cargo tauri build",
"test": "vitest run",
"test:cargo": "cd src-tauri && cargo test",
"test:e2e": "wdio run tests/e2e/wdio.conf.js",
"test:all": "bash scripts/test-all.sh",
"test:all:e2e": "bash scripts/test-all.sh --e2e",
"build:sidecar": "esbuild sidecar/claude-runner.ts --bundle --platform=node --format=esm --outfile=sidecar/dist/claude-runner.mjs && esbuild sidecar/codex-runner.ts --bundle --platform=node --format=esm --outfile=sidecar/dist/codex-runner.mjs && esbuild sidecar/ollama-runner.ts --bundle --platform=node --format=esm --outfile=sidecar/dist/ollama-runner.mjs"
},
"devDependencies": {