Agent Skills
› bmad-code-org/BMAD-METHOD
› bmad-qa-generate-e2e-tests
bmad-qa-generate-e2e-tests
GitHub为已实现功能生成端到端及API自动化测试,遵循项目现有测试框架。适用于用户请求创建E2E或API测试场景,不处理单元测试。
Trigger Scenarios
请求创建E2E测试
请求创建API测试
要求对已有功能进行自动化覆盖
Install
npx skills add bmad-code-org/BMAD-METHOD --skill bmad-qa-generate-e2e-tests -g -y
SKILL.md
Frontmatter
{
"name": "bmad-qa-generate-e2e-tests",
"description": "Add end-to-end and API tests for features that already work, following the project's existing test harness. Use when the user asks for e2e tests, API tests, or automated coverage of an existing feature, or says \"create qa automated tests for [feature]\". Not for unit tests on work in flight, which the build writes."
}
Run the following command exactly once without changing the current working directory.
Replace {project-root} with the nearest folder containing _bmad/, from the working directory upward.
Replace {skill-root} with the absolute path to this skill's directory.
uv run --no-cache "{project-root}/_bmad/scripts/render_skill.py" --project-root "{project-root}" --skill "{skill-root}"
- The command prints the skill's workflow: follow it.
HALT: <reason>: report the reason and stop. - If the script does not exist, BMad is not set up in this project yet. Offer to set it up using
bmadskill, then run the command again. If you do not have thebmadskill, offer to install it first. - On any other output or failure, including
uvbeing unavailable, report the command output and stop. Do not run any workflow source directly.
Version History
-
61e01f8
Current 2026-10-19 20:21
改用render_skill.py直接打印渲染后的工作流文本而非路径,确保Agent无法读取部分文件;优化HALT提示与安装说明输出位置。
-
5e33d3c
2026-09-28 11:23
改进了 {project-root} 的解析逻辑,支持在 worktree 或子文件夹中启动时向上查找 _bmad/ 目录,确保正确定位项目根路径。
- 1b59caa 2026-09-23 00:25


