一键导入
fp-audit
Analyze the gap between E2E specifications and existing test implementations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze the gap between E2E specifications and existing test implementations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new feature or suite to the E2E spec and generate corresponding tests
Create a new E2E_TESTS.md specification file for a package
Bootstrap E2E_TESTS.md specification files for a project
Validate that E2E_TESTS.md specification files are complete and well-structured
Update an existing E2E_TESTS.md specification to reflect changes
Framework-agnostic E2E testing principles, spec-driven test generation, and maintenance workflows
| name | fp-audit |
| description | Analyze the gap between E2E specifications and existing test implementations |
Analyze the gap between E2E specifications and existing test implementations. This is a read-only command — it reports findings but does not modify any files.
Additional instructions from the user: "$ARGUMENTS". Ignore if empty.
E2E_TESTS.md files by searching recursively from the project root.docs/E2E_TESTS.md or E2E_TESTS.md) to understand project-wide testing constraints.E2E_TESTS.md and extract:
<!-- category: ... -->)<!-- skip: ... -->)**/*.e2e.test.***/e2e/**/*.test.*describe() in vitest/jest, mod tests in Rust, class in pytest) — map to suitesit() / test() in vitest/jest, #[test] in Rust, def test_ in pytest) — map to featuresskip / skipIf in vitest/jest, #[ignore] in Rust, @pytest.mark.skip in pytest)Build a coverage matrix:
| Spec Suite | Spec Feature | Category | Test File | Test Case | Status |
|---|---|---|---|---|---|
| Task Creation | Create basic task | core | task.e2e.test.ts | "Create basic task" | Covered |
| Task Creation | Create with long name | edge | — | — | Missing |
| Push | Push to remote | core | push.e2e.test.ts | "push to remote" | Covered |
For each spec feature, determine:
<!-- skip: ... --> features)Present findings in this format:
E2E Test Coverage Audit
========================
Specs found: N files
Test files found: N files
Overall coverage: X/Y features (Z%)
By category:
core: X/Y (Z%)
edge: X/Y (Z%)
error: X/Y (Z%)
side-effect: X/Y (Z%)
idempotency: X/Y (Z%)
Gaps by suite:
## Task Creation (3/5 features covered)
MISSING [edge] Create with very long name
MISSING [idempotency] Re-create after deletion
## Push (4/4 features covered)
(fully covered)
Stale tests:
push.e2e.test.ts: "push with pending changes"
Spec says: Exits with non-zero code
Test asserts: Exits with code 0
Structural issues:
- task.e2e.test.ts: Tests share mutable state at suite level
- init.e2e.test.ts: Missing afterEach cleanup for env.HOME
Do NOT suggest fixes or modifications. This command is purely diagnostic.