Agent Skills › shinpr/claude-code-workflows › integration-e2e-testing

integration-e2e-testing

GitHub

定义集成与E2E测试的骨架规范、测试车道分类及文件命名约定,规定测试注释模板和路由一致性审查标准,用于生成或审查共享变更路径的测试用例。

dev-workflows-fullstack/skills/integration-e2e-testing/SKILL.md shinpr/claude-code-workflows

触发场景

生成集成或E2E测试骨架代码 审查共享变更路由的测试覆盖情况 制定测试文件的命名和组织结构

安装

npx skills add shinpr/claude-code-workflows --skill integration-e2e-testing -g -y
更多选项

非标准路径

npx skills add https://github.com/shinpr/claude-code-workflows/tree/main/dev-workflows-fullstack/skills/integration-e2e-testing -g -y

不安装直接使用

npx skills use shinpr/claude-code-workflows@integration-e2e-testing

指定 Agent (Claude Code)

npx skills add shinpr/claude-code-workflows --skill integration-e2e-testing -a claude-code -g -y

安装 repo 全部 skill

npx skills add shinpr/claude-code-workflows --all -g -y

预览 repo 内 skill

npx skills add shinpr/claude-code-workflows --list

SKILL.md

Frontmatter
{
    "name": "integration-e2e-testing",
    "description": "Defines integration\/E2E skeleton annotations, lane and file contracts, and route-parity review criteria. Use when generating or consuming test skeletons or reviewing shared mutation routes."
}

Integration and E2E Skeleton Contracts

Test Lanes

Lane Observable boundary Dependencies
integration Interactions within a process, including framework-rendered UI and module/API handlers Real participating components; mock only outside the claimed boundary
fixture-e2e Actual UI behavior in a real browser with deterministic fixtures Fixtures may replace dependencies outside the claimed boundary
service-integration-e2e Outcome depends on actual cross-service interaction or persistence Required local services and stores are real; stubs only outside that proof boundary

Test Skeleton Specification

Required Comment Patterns

Each test MUST include the following annotations:

AC: [Original acceptance criteria text]
Behavior: [Trigger] → [Process] → [Observable Result]
@lane: integration | fixture-e2e | service-integration-e2e
@dependency: none | [component names] | full-system
Selection evidence: [required claim, uncovered failure, and why cheaper existing proof is insufficient]

Use the project's comment syntax to wrap these annotations (e.g., // for C-family, # for Python/Ruby/Shell).

Verification Items (Optional)

When verification points need explicit enumeration:

Verification items:
- [Item 1]
- [Item 2]

Test File Naming Convention

  • Integration tests: *.int.test.* or *.integration.test.*
  • fixture-e2e tests: *.fixture.e2e.test.* (or organize under tests/e2e/fixture/)
  • service-integration-e2e tests: *.service.e2e.test.* (or organize under tests/e2e/service/)

The test runner or framework in the project determines the appropriate file extension. Repos that already use a single *.e2e.test.* convention may keep it as long as each file declares @lane: in its header — the lane annotation is the source of truth for routing.

Route Parity for Shared Mutations

When multiple routes reach the same mutation, compare validation, classification, resource bounds, and read/parse/mutation/reporting order. A difference becomes a proof obligation when it can violate an authoritative contract or expose a material bypass in the changed boundary. Reuse existing proof or add the smallest test that detects that failure.

版本历史

  • eba53e4 当前 2026-11-02 13:37

    从测试原则转向具体的骨架契约规范,引入基于注释的测试车道标记和路由一致性审查标准,移除冗余的选择规则。

  • 910f9dd 2026-10-18 21:10

    整合测试指南,统一为单一测试技能;移除测试优先执行要求;优化代码审查以检测重复测试;调整测试骨架生成逻辑。

  • 6d58447 2026-09-08 22:27

    调整 service-integration-e2e 的执行时机描述,从最终阶段改为可执行时尽早进行。

  • 416af89 2026-08-12 16:38

    修复因缺失AskUserQuestion协议导致的Agent声明问题,明确技能所有权边界及约束条件。

  • d439b50 2026-07-31 02:52
  • 56ab6c1 2026-07-19 22:43

    重构:改进了提示词执行指南,优化了测试类型定义表中的列名(从Limits改为Standard Budget per Input Design Doc),并细化了预算应用规则说明。

  • 66e3b29 2026-07-05 11:59

同 Skill 集合

dev-skills/skills/ai-development-guide/SKILL.md
dev-skills/skills/coding-principles/SKILL.md
dev-skills/skills/documentation-criteria/SKILL.md
dev-skills/skills/external-resource-context/SKILL.md
dev-skills/skills/frontend-ai-guide/SKILL.md
dev-skills/skills/implementation-approach/SKILL.md
dev-skills/skills/integration-e2e-testing/SKILL.md
dev-skills/skills/llm-friendly-context/SKILL.md
dev-skills/skills/requirement-convergence/SKILL.md
dev-skills/skills/test-implement/SKILL.md
dev-skills/skills/testing-principles/SKILL.md
dev-skills/skills/typescript-rules/SKILL.md
dev-workflows-frontend/skills/ai-development-guide/SKILL.md
dev-workflows-frontend/skills/coding-principles/SKILL.md
dev-workflows-frontend/skills/documentation-criteria/SKILL.md
dev-workflows-frontend/skills/external-resource-context/SKILL.md
dev-workflows-frontend/skills/frontend-ai-guide/SKILL.md
dev-workflows-frontend/skills/implementation-approach/SKILL.md
dev-workflows-frontend/skills/integration-e2e-testing/SKILL.md
dev-workflows-frontend/skills/llm-friendly-context/SKILL.md
dev-workflows-frontend/skills/recipe-diagnose/SKILL.md
dev-workflows-frontend/skills/recipe-front-adjust/SKILL.md
dev-workflows-frontend/skills/recipe-front-build/SKILL.md
dev-workflows-frontend/skills/recipe-front-design/SKILL.md
dev-workflows-frontend/skills/recipe-front-plan/SKILL.md
dev-workflows-frontend/skills/recipe-front-review/SKILL.md
dev-workflows-frontend/skills/recipe-quality-profile/SKILL.md
dev-workflows-frontend/skills/recipe-task/SKILL.md
dev-workflows-frontend/skills/recipe-update-doc/SKILL.md
dev-workflows-frontend/skills/requirement-convergence/SKILL.md
dev-workflows-frontend/skills/subagents-orchestration-guide/SKILL.md
dev-workflows-frontend/skills/task-analyzer/SKILL.md
dev-workflows-frontend/skills/test-implement/SKILL.md
dev-workflows-frontend/skills/testing-principles/SKILL.md
dev-workflows-frontend/skills/typescript-rules/SKILL.md
dev-workflows-fullstack/skills/ai-development-guide/SKILL.md
dev-workflows-fullstack/skills/coding-principles/SKILL.md
dev-workflows-fullstack/skills/documentation-criteria/SKILL.md
dev-workflows-fullstack/skills/external-resource-context/SKILL.md
dev-workflows-fullstack/skills/frontend-ai-guide/SKILL.md
dev-workflows-fullstack/skills/implementation-approach/SKILL.md
dev-workflows-fullstack/skills/llm-friendly-context/SKILL.md
dev-workflows-fullstack/skills/recipe-add-integration-tests/SKILL.md
dev-workflows-fullstack/skills/recipe-build/SKILL.md
dev-workflows-fullstack/skills/recipe-design/SKILL.md
dev-workflows-fullstack/skills/recipe-diagnose/SKILL.md
dev-workflows-fullstack/skills/recipe-front-adjust/SKILL.md
dev-workflows-fullstack/skills/recipe-front-build/SKILL.md
dev-workflows-fullstack/skills/recipe-front-design/SKILL.md

元信息

文件数
0
版本
eba53e4
Hash
12648db7
收录时间
2026-07-05 11:59

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 04:41
浙ICP备14020137号-1