dotnet-testing-advanced-webapi-integration-testing
CommunityLevel up ASP.NET Core WebApi integration tests.
Software Engineering#integration-testing#testcontainers#aspnetcore#webapi#WebApplicationFactory#Flurl
Authorkevintsengtw
Version1.0.0
Installs0
System Documentation
What problem does it solve?
這個技能提供在 ASP.NET Core WebApi 專案中進行整合測試的完整指南,涵蓋使用 WebApplicationFactory 建立測試伺服器、全域與自訂異常處理的測試、ProblemDetails 格式驗證,以及使用 Testcontainers 管理多容器測試環境。
Core Features & Use Cases
- 支援多容器整合測試(PostgreSQL、Redis 等)與時間控制。
- 使用 Flurl 進行 URL 建構,並以 AwesomeAssertions 驗證 HTTP 回應。
- 提供可重複使用的測試基底與實作範例,涵蓋建立、查詢、更新、刪除等常見 API 操作。
Quick Start
建立測試專案並參考範例中的 WebApplicationFactory 與 Testcontainers 設定,執行 dotnet test 以執行整合測試。
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-testing-advanced-webapi-integration-testing Download link: https://github.com/kevintsengtw/dotnet-testing-agent-skills/archive/main.zip#dotnet-testing-advanced-webapi-integration-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.