dotnet-testing-test-output-logging
Installation
SKILL.md
測試輸出與記錄專家指南
本技能協助您在 .NET xUnit 測試專案中實作高品質的測試輸出與記錄機制。
核心原則
1. ITestOutputHelper 使用原則
正確的注入方式
- 透過建構式注入
ITestOutputHelper - 每個測試類別的實例與測試方法綁定
- 不可在靜態方法或跨測試方法間共用
public class MyTests
{
private readonly ITestOutputHelper _output;
Related skills