什麼是 pytest-backend-testing?
FastAPI 後端的綜合 pytest 測試指南。涵蓋單元測試、整合測試、非同步模式、模擬、固定裝置、覆蓋率以及使用 TestClient 進行的 FastAPI 特定測試。在為後端服務、儲存庫或 API 路由編寫或更新測試程式碼時使用。 來源:chacha95/advanced-harness。
FastAPI 後端的綜合 pytest 測試指南。涵蓋單元測試、整合測試、非同步模式、模擬、固定裝置、覆蓋率以及使用 TestClient 進行的 FastAPI 特定測試。在為後端服務、儲存庫或 API 路由編寫或更新測試程式碼時使用。
透過命令列快速安裝 pytest-backend-testing AI 技能到你的開發環境
來源:chacha95/advanced-harness。
Complete guide for writing comprehensive tests for FastAPI backend applications using pytest, pytest-asyncio, and FastAPI TestClient. Emphasizes async testing, proper mocking, layered testing (repository → service → router), and achieving high test coverage.
| Understand test structure | testing-architecture.md | | Write unit tests | unit-testing.md | | Write integration tests | integration-testing.md | | Test async code | async-testing.md | | Use mocks and fixtures | mocking-fixtures.md | | Improve coverage | coverage-best-practices.md | | Test FastAPI routes | fastapi-testing.md |
Skill Status: Modular structure with progressive loading for optimal context management
FastAPI 後端的綜合 pytest 測試指南。涵蓋單元測試、整合測試、非同步模式、模擬、固定裝置、覆蓋率以及使用 TestClient 進行的 FastAPI 特定測試。在為後端服務、儲存庫或 API 路由編寫或更新測試程式碼時使用。 來源:chacha95/advanced-harness。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/chacha95/advanced-harness --skill pytest-backend-testingFastAPI 後端的綜合 pytest 測試指南。涵蓋單元測試、整合測試、非同步模式、模擬、固定裝置、覆蓋率以及使用 TestClient 進行的 FastAPI 特定測試。在為後端服務、儲存庫或 API 路由編寫或更新測試程式碼時使用。 來源:chacha95/advanced-harness。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/chacha95/advanced-harness --skill pytest-backend-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/chacha95/advanced-harness