跳到正文
Skillpedia
测试15k · #10942

run-smoke-tests

它能做什么

让智能体运行端到端冒烟测试,查明失败的原因并进行修复。适合希望快速确认应用仍然正常工作的开发者。

适用场景

  • ✓当你希望在修改前后做一次端到端检查的时候。
  • ✓当冒烟测试失败、你需要找出根本原因的时候。
  • ✓当你想确认修复稳定、不会时好时坏的时候。

技能链接

https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/run-smoke-tests/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/run-smoke-tests/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请运行冒烟测试,找出失败的原因,并用最小的改动修复。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会构建应用所需的内容,运行完整的冒烟测试套件或单个测试文件,阅读失败的跟踪记录和日志,应用最小修复,然后重新运行以确认稳定。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Run smoke tests

Trigger

Need end-to-end smoke verification before or after changes.

Workflow

  1. Build prerequisites for the target app.
  2. Run the relevant smoke suite or a focused test file.
  3. If failing, inspect traces/logs and isolate the root cause.
  4. Apply a minimal fix and rerun until stable.

Example Commands

# Run full smoke suite
npm run smoketest

# Run a specific smoke test file
npm run smoketest -- path/to/test.spec.ts

# Faster iteration when build artifacts are ready
npm run smoketest-no-compile -- path/to/test.spec.ts

Guardrails

  • Prefer deterministic waits and assertions over brittle timeouts.
  • Re-run passing fixes to reduce flaky false positives.
  • Quarantine tests only when explicitly requested and documented.

Output

  • Test results summary
  • Root cause and fix
  • Remaining flake risk (if any)
常见问题

它能只运行一个测试文件吗?

可以。它可以运行指定的冒烟测试文件,以便更快地迭代。

它会添加等待来掩盖不稳定的问题吗?

不会。该技能更倾向于使用确定性的等待和断言,而不是脆弱的超时设置。

它会直接禁用失败的测试吗?

只有在你明确要求时才会,并且必须记录隔离的原因。

详情

作者的原始描述

Run Playwright smoke tests, debug failures, and verify fixes

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#10942
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能