dotnet-testing-advanced-tunit-fundamentals
CommunityMaster TUnit: fast, modern .NET testing.
Authorkevintsengtw
Version1.0.0
Installs0
System Documentation
What problem does it solve?
本技能協助 .NET 團隊以 TUnit 取代過時的 xUnit 測試工作流程,提升測試啟動速度與性能,並提供現代化的測試撰寫方式與執行管線。
Core Features & Use Cases
- Source-generator 驅動的測試發現與註冊,減少反射成本並提升編譯期最佳化
- AOT 支援,提升啟動時間穩定性,適合容器化與原生部署
- 流暢式非同步斷言與生命週期管理,統一測試語法與執行模型
- 與 xUnit 語法對照的遷移指引,方便既有專案逐步轉換
- 適用於新專案的快速建立與現有測試的轉換與整合
Quick Start
- 建立專案並安裝 TUnit 套件與模板,開始撰寫 [Test] 標註的非同步測試
- 將測試方法改為 async Task,並使用 await Assert.That(...) 進行斷言
- 透過 dotnet test 驗證結果,並在 CI/CD 中逐步引入 TUnit 的效能與穩定性優勢
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-tunit-fundamentals Download link: https://github.com/kevintsengtw/dotnet-testing-agent-skills/archive/main.zip#dotnet-testing-advanced-tunit-fundamentals 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.