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 從公開儲存庫中收錄這些內容。

檢舉或申請下架