什么是 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