Run Smoke Tests

作者 cursorccb5507cec15无许可证10K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Run Playwright smoke tests, debug failures, and verify fixes

AI 生成的概览

运行 Playwright 冒烟测试、诊断失败、应用最小修复,并报告结果与不稳定风险。

功能
该技能指导智能体完成端到端冒烟验证:构建前置条件,运行完整冒烟套件或指定测试文件,并在测试失败时检查追踪与日志。随后定位根本原因、应用最小修复并反复重跑直至稳定。产出包括测试结果摘要、根本原因与修复,以及剩余的不稳定风险。
适用场景
适用于在应用变更前后需要进行端到端冒烟验证的场景。也适合需要运行冒烟套件、排查失败测试,或通过重跑确认修复效果的场合。
运行要求
目标应用的构建前置条件,以及包含 npm run smoketest 和 npm run smoketest-no-compile 等冒烟测试命令的项目。该技能不附带脚本,仅为说明文档。

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

bash
# Run full smoke suitenpm run smoketest
# Run a specific smoke test filenpm run smoketest -- path/to/test.spec.ts
# Faster iteration when build artifacts are readynpm 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)

来源与署名

来源:cursor/plugins位于cursor-team-kit/skills/run-smoke-tests提交ccb5507

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架