dotnet-testing-advanced-aspnet-integration-testing

Installation
SKILL.md

ASP.NET Core 整合測試指南

核心概念

整合測試的兩種定義

  1. 多物件協作測試 — 將兩個以上的類別做整合,測試它們之間的運作是否正確
  2. 外部資源整合測試 — 使用到資料庫、外部服務、檔案等外部資源的測試

為什麼需要整合測試?

  • 確保多個模組整合後能正確工作
  • 單元測試無法涵蓋的整合點:Routing、Middleware、Request/Response Pipeline
  • 確認 WebApplication 的整合與設定是否正確
  • 確認異常處理是否完善

測試金字塔定位

Related skills
Installs
43
GitHub Stars
24
First Seen
Jan 24, 2026