Skip to content
Skills Library
Programming · Testing

e2e-assistant

/e2e-assistant

[UDS] 从 BDD 的 .feature 场景生成 E2E 测试骨架,并支持框架检测与覆盖缺口分析。 Use when: 把已完成的 .feature 场景转成可运行的 E2E 骨架、检测项目使用的 E2E 框架、找出没有 E2E 覆盖的 AC。 Not for: 跨多个故事且带有共享状态的旅程——请用 journey-test Skill;编写 .feature 场景本身——请用 /bdd。 Keywords: E2E, end-to-end test, feature file, test skeleton, framework detection, 端对端测试, 测试骨架, 场景转测试, 覆盖缺口.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

84/ 100Class: good
Format9 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

[UDS] 从 BDD 的 .feature 场景生成 E2E 测试骨架,并支持框架检测与覆盖缺口分析。 Use when: 把已完成的 .feature 场景转成可运行的 E2E 骨架、检测项目使用的 E2E 框架、找出没有 E2E 覆盖的 AC。 Not for: 跨多个故事且带有共享状态的旅程——请用 journey-test Skill;编写 .feature 场景本身——请用 /bdd。 Keywords: E2E, end-to-end test, feature file, test skeleton, framework detection, 端对端测试, 测试骨架, 场景转测试, 覆盖缺口.

Original author description

[UDS] 从 BDD 的 .feature 场景生成 E2E 测试骨架,并支持框架检测与覆盖缺口分析。 Use when: 把已完成的 .feature 场景转成可运行的 E2E 骨架、检测项目使用的 E2E 框架、找出没有 E2E 覆盖的 AC。 Not for: 跨多个故事且带有共享状态的旅程——请用 journey-test Skill;编写 .feature 场景本身——请用 /bdd。 Keywords: E2E, end-to-end test, feature file, test skeleton, framework detection, 端对端测试, 测试骨架, 场景转测试, 覆盖缺口.

How it works

  1. 工作流程
  2. 模式
  3. AC 分类
  4. 支持框架
  5. 使用方式
  6. 下一步引导
  7. 参考
  8. AI 代理行为
Original SKILL.md headings · 91 lines, 426 words
SKILL.md preview
---
source: ../../../../skills/e2e-assistant/SKILL.md
source_version: 1.0.0
translation_version: 1.1.0
last_synced: 2026-10-11
source_hash: 847c1498d429
status: current
description: |
  [UDS] 从 BDD 的 .feature 场景生成 E2E 测试骨架,并支持框架检测与覆盖缺口分析。
  Use when: 把已完成的 .feature 场景转成可运行的 E2E 骨架、检测项目使用的 E2E 框架、找出没有 E2E 覆盖的 AC。
  Not for: 跨多个故事且带有共享状态的旅程——请用 journey-test Skill;编写 .feature 场景本身——请用 /bdd。
  Keywords: E2E, end-to-end test, feature file, test skeleton, framework detection, 端对端测试, 测试骨架, 场景转测试, 覆盖缺口.
---

# E2E 助手

> **语言**: [English](../../../../skills/e2e-assistant/SKILL.md) | 简体中文

> [!WARNING]
> **实验性功能 / Experimental Feature**
>
> 此功能正在积极开发中,可能在 v4.0 中有重大变更。
> This feature is under active development and may change significantly in v4.0.

从 BDD `.feature` 场景生成 E2E 测试骨架,支持框架检测与覆盖差距分析。

## 工作流程

```
/derive bdd → .feature 场景
    ↓
/e2e → 分析 AC 适用性 → 检测框架 → 参考既有模式 → 生成骨架
    ↓
手动执行验证
```

## 模式

### 1. 生成模式(默认)

分析 BDD 场景、分类 AC 适用性、检测框架、生成 E2E 测试骨架。

### 2. 分析模式(--analyze)

扫描 BDD feature 与既有 E2E 测试之间的覆盖差距。

## AC 分类

| 类别 | 条件 | 示例 |
|------|------|------|
| `e2e-suitable` | 多步骤用户流程或 UI 交互 | 登录 → 操作 → 验证 |
| `integration-suitable` | 跨组件但无 UI | API 调用 → DB 写入 |
| `unit-suitable` | 纯逻辑或计算 | 排序、验证、格式化 |

## 支持框架

| 生态系统 | 框架 | 自动检测 | 检测信号 |
|----------|------|:--------:|----------|
| JavaScript | Playwright | ✅ | package.json 中有 `@playwright/test` |
| JavaScript | Cypress | ✅ | `cypress` 依赖 + 配置文件 |
| JavaScript | Vitest | ✅ | `vitest` 依赖 + e2e 目录 |
| JavaScript | WebdriverIO | ❌ 手动 | 列于 SUPPORTED_FRAMEWORKS |
| Python | pytest-playwright | ✅ | requirements 中有 `pytest-playwright` |
| Python | Selenium + pytest | ✅ | requirements 中有 `selenium` |
| Python | Robot Framework | ✅ | requirements 中有 `robotframework` |
| Python | Behave | ✅ | requirements 中有 `behave` |
| Go | chromedp | ✅ | go.mod 中有 `chromedp` |
| Go | rod | ✅ | go.mod 中有 `rod` |
| Java | Selenium WebDriver | ✅ | pom.xml / build.gradle 中有 `selenium-java` |
| Java | Playwright for Java | ✅ | pom.xml / build.gradle 中有 `playwright` |
| Java | Gauge | ✅ | pom.xml / build.gradle 中有 `gauge-java` |
| Ruby | Capybara | ✅ | Gemfile 中有 `capybara` |
| Ruby | Watir | ✅ | Gemfile 中有 `watir` |
| C# | Playwright for .NET | ❌ 手动 | 尚未支持自动检测 |
| C# | Selenium WebDriver | ❌ 手动 | 尚未支持自动检测 |

## 使用方式

```
/e2e <feature-file>            - 从 BDD 场景生成 E2E 骨架
/e2e <spec-file>               - 委派 /derive e2e 处理 SDD 规格
/e2e --analyze                 - 扫描所有 feature 的 E2E 覆盖差距
/e2e --analyze <feature-file>  - 分析特定 feature 的 AC 适用性
```

## 下一步引导

`/e2e` 完成后,AI 助手应建议:

> **E2E 骨架已生成。建议下一步:**
> - 执行 `/tdd` 填入 `[TODO]` 标记的测试实现 ⭐ **推荐** — 实现测试逻辑
> - 执行 `/checkin` 质量关卡(若功能完成)
> - 执行 `/e2e --analyze` 检查整体 E2E 覆盖状况

## 参考

- 规格:[SPEC-E2E-001](../../../../docs/specs/skills/SPEC-E2E-001-e2e-skill.md)
- 核心规范:[testing-standards.md](../../../../core/testing-standards.md)
- 工具程序:`cli/src/utils/e2e-analyzer.js`、`cli/src/utils/e2e-detector.js`

## AI 代理行为

> 完整的 AI 行为定义请参阅对应的命令文件:[`/e2e`](../../../../skills/commands/e2e.md#ai-agent-behavior--ai-代理行為)

Versions

The database has no other skills named e2e-assistant.

Database snapshot: 13.11.2026 · package version 8fa721d9f2a1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95e2e
    [UDS] 從 BDD 的 .feature 場景產生 E2E 測試骨架,並支援框架偵測與覆蓋缺口分析。 Use when: 把已完成的 .feature 場景轉成可執行的 E2E 骨架、偵測專案使用的 E2E 框架、找出沒有 E2E 覆蓋的 AC。 Not for: 跨多個故事且帶有共用狀態的旅程——請用 journey-test Skill;撰寫 .feature 場景本身——請用 /bdd。 Keywords: E2E, end-to-end test, feature file, test skeleton, framework…
  • 95e2e
    [UDS] 從 BDD 的 .feature 場景產生 E2E 測試骨架,並支援框架偵測與覆蓋缺口分析。 Use when: 把已完成的 .feature 場景轉成可執行的 E2E 骨架、偵測專案使用的 E2E 框架、找出沒有 E2E 覆蓋的 AC。 Not for: 跨多個故事且帶有共用狀態的旅程——請用 journey-test Skill;撰寫 .feature 場景本身——請用 /bdd。 Keywords: E2E, end-to-end test, feature file, test skeleton, framework…
  • 100test-review
    Evaluates test suites for coverage gaps, TDD/BDD compliance, and anti-patterns. Use when auditing test quality or before a major release.
  • 95aep-e2e-skill-scaffolding
    Generates or upgrades a project's e2e-test skill to the three-tier BDD layer-gate shape. Use for "set up e2e testing" or "add BDD journeys".
  • 100playwright-bdd-configuration
    Use when configuring Playwright BDD projects, setting up defineBddConfig(), configuring feature and step file paths, and integrating with Playwright config.
  • 100bdd-patterns
    Use when applying Behavior-Driven Development patterns including Given-When-Then structure, feature files, and acceptance criteria. Use when writing BDD-style tests and specifications.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.