测试缺口补齐
testing-gap-close
强制性的架构与测试流程,用于让 testing_mcp 和 testing_ui 测试通过 /es 和 /er 证据关卡。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- testing-gap-close
- description
- Mandatory architectural and testing processes to get testing_mcp and testing_ui tests through the /es and /er evidence gates
02 资源文件 1
03 SKILL.md 正文
Testing Gap Close Strategy
This skill codifies the mandatory architectural and testing processes required to get testing_mcp and testing_ui tests to pass /es (Evidence Standards) and /er (Evidence Review) verification gates.
Select evidence for the claim
There is no universal evidence triad for every PR. Resolve the current project root
and read its AGENTS.md, the scoped testing_mcp/AGENTS.md or testing_ui/CLAUDE.md
when those paths are involved, and the current evidence-standards owner. Select the
lowest sufficient evidence class for each actual claim. Capture request, provider,
server, persistence, and UI artifacts only when that claim requires them; do not
invent missing provider traffic or require unrelated evidence classes.
Mandatory Execution Protocols
When investigating or resolving gaps in /es bundle generation, follow these non-negotiable protocols:
1. Hardening the Server Boot Lifecycle
Use the server target required by the claim and the scoped test owner. A local behavior claim uses the authorized local server route; use gunicorn only when the claim depends on its worker or deployment behavior.
- Mock Fallback Banned: Never rely on
TEST_MODE=mockfor production/esverification. - Environment Parity: Set only the environment required by the claim. Tests under
testing_mcp/andtesting_ui/must authenticate with real Firebase Auth and dedicated test accounts; explicitly setTESTING_AUTH_BYPASS=false ALLOW_TEST_AUTH_BYPASS=false. Their scoped owners prohibit bypass, mocks, and synthetic results. Offline mocks remain valid for deterministic tests outside those directories and never count as live-service proof. - Worker Stability: Use the scoped test-owned server lifecycle and teardown. Stop only the exact process started by the test after verifying its PID/ownership; never use broad
pkillpatterns or force-kill unrelated workers.
2. Validate evidence required by the claim
- Resolve the current project root and follow the scoped test owner for its harness and capture contract. Require complete streaming traces only when the claim exercises streaming and its evidence class requires them.
- When the claim includes a streamed interaction, verify the run reaches the completion event required by that harness; do not require unrelated trace files for claims that do not exercise those paths.
3. Evidence packaging and checksums
- Use the helper and metadata required by the scoped test owner for the selected evidence class; keep scratch output in a unique
/tmp/<repo>/...run directory. - Verify the checksum mode required by the current
/esor/ercontract for that claim. Do not assert a universal bundle schema beyond that contract.
4. Bundle Archival and Git Registration
- Keep bulky and ephemeral evidence under a unique
/tmp/<repo>/...run directory. When an evidence artifact must outlive the session or a gate requires publication, use an authorized hosted evidence route and link its receipt with the tested SHA in the PR description. Never copy evidence bundles into the repository tree.
04 同仓库更多 Skills
disk-reclaim-playbook
Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.
claudea-bench
Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
pr
Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
pr-report
This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.