W Test

blockmatic/basilic-skills/skills/workflow/w-test

作者 blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635無授權條款1 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 天前更新

Run the repository test scripts and fix failures until they pass.

AI 產生的概覽

執行儲存庫中記載的測試指令碼,修正造成失敗的根本原因,並反覆執行直到測試套件通過。

功能
此技能引導代理執行 package.json 中記載的測試指令碼,選擇涵蓋本次變更的最小測試套件;當失敗原因不明時則使用完整套件。它會擷取實際失敗的測試,一次只修正一個根本原因,並重新執行失敗的指令,直到測試套件全數通過。它明確禁止以削弱斷言或略過測試的方式取得通過,並在剩餘失敗需要人工處理(例如密鑰、環境問題或不穩定的基礎設施)時停止。它也提醒在行為或指令變更時更新文件。
適用情境
當儲存庫有記載的測試指令碼,且需要診斷並修正失敗而不只是回報失敗時使用。它適用於希望執行並修復相關測試套件的變更,也包括因失敗原因不明而必須執行完整套件的情況。
執行需求
需要一個在 package.json 中記載測試指令碼的儲存庫,以及可用的測試執行器(例如 pnpm 或 Turbo),還需要測試所依賴的環境、密鑰或服務。此技能本身不附帶指令碼,僅為指示。

Run the documented test scripts from package.json (filtered to the change when the repo supports it). Fix owning causes. Do not publish.

  1. Identify the test command for the affected packages (pnpm test, Turbo filters, or the app E2E script). Prefer the narrowest suite that covers the change; use the full suite when the failure is unknown or the user asked for it.
  2. Run the command. Capture failing tests, not a paraphrase.
  3. Fix one owning cause at a time. Re-run the failed command. Do not weaken assertions or skip tests to obtain a pass. Stop when the suite is green or remaining failures need a human (secrets, env, flaky infra).
  4. Docs: /w-docs if behavior or commands changed.

來源與署名

來源:blockmatic/basilic-skills位於skills/workflow/w-test提交7e05e2a

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架