W Api Test

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

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

Add API tests that exercise public HTTP behavior against existing harnesses.

AI 產生的概覽

針對倉庫現有測試框架,加入檢驗公開 HTTP 行為的 API 測試。

功能
此技能引導代理透過公開介面撰寫 API 測試,使用倉庫的 API 或 Playwright 測試框架來檢驗端點。測試涵蓋所要求的操作、授權拒絕,以及符合契約的回應,並使用套件指令碼提供的沙箱或本機伺服器,同時清理建立的資源。接著執行文件中針對這些測試的 API 或 e2e 指令,並在行為或指令變更時指向文件技能。
適用情境
當倉庫需要為 HTTP 端點新增 API 或端對端測試時使用,尤其是在已有測試框架與測試規格的情況下。它適合必須避免正式環境與硬編碼密鑰的工作。
執行需求
需要倉庫中既有的測試框架(API 或 Playwright)、可供閱讀的現有測試規格或 API 測試文件,以及提供沙箱或本機伺服器的套件指令碼。此技能不附帶指令碼,僅為說明性指示。

Test endpoints through the public interface using this repo's API or Playwright harness. Do not hit production. Do not hardcode secrets.

  1. Read the API testing MDX and existing *.test.ts or e2e specs.
  2. Cover the requested operations, authz denials, and contract-shaped responses.
  3. Use sandbox or local servers from package scripts. Clean up created resources.
  4. Run the documented API or e2e command for those tests.
  5. Docs: /w-docs if behavior or commands changed.

來源與署名

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

授權條款: 無授權條款

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

檢舉或申請下架