360 Secure SkillHub
360 安全技能中心

run-smoke-tests

用于在改动前后执行 Playwright 端到端冒烟验证:运行整套或指定测试,检查追踪与日志定位根因,应用最小修复并重跑,最后汇总结果与剩余不稳定风险。

cursor
热度 26.02
最近更新 2026-10-19 06:48:37
分类:开发依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:调试排错 / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add cursor/plugins/run-smoke-tests
Metadata
name
run-smoke-tests
description
Run Playwright smoke tests, debug failures, and verify fixes

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)