360 Secure SkillHub
360 安全技能中心

bmad-qa-generate-e2e-tests

该 Skill 面向已实现功能,按项目现有测试框架生成端到端和 API 测试;启动时渲染 BMad 工作流并据此执行,项目未配置时提示先完成初始化。不适用于为进行中的改动编写单元测试。

bmad-code-org
热度 80.06
最近更新 2026-10-18 16:47:10
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bmad-code-org/bmad-method/bmad-qa-generate-e2e-tests
Metadata
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 bmad skill, then run the command again. If you do not have the bmad skill, offer to install it first.
  • On any other output or failure, including uv being unavailable, report the command output and stop. Do not run any workflow source directly.