dotnet-testing-test-output-logging

Community

掌握 xUnit 測試輸出與日誌的必備技巧

Authorkevintsengtw
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a practical guide to implementing and validating test output and logging in .NET xUnit tests, helping teams produce consistent, diagnosable test traces.

Core Features & Use Cases

  • Guided ITestOutputHelper usage: Correct constructor injection to capture test output per test class.
  • Structured logging patterns: Templates for structured log sections, timestamps, and key-value outputs to improve readability.
  • Logger testing strategies: Approaches to test ILogger-based implementations, including AbstractLogger and CompositeLogger usage.
  • Diagnosis & tooling examples: Example loggers and patterns to integrate with xUnit, including XUnitLogger and CompositeLogger.

Quick Start

To adopt this skill, start by wiring ITestOutputHelper in your test project and reference the provided logger patterns to standardize test output.

Dependency Matrix

Required Modules

None required

Components

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-test-output-logging
Download link: https://github.com/kevintsengtw/dotnet-testing-agent-skills/archive/main.zip#dotnet-testing-test-output-logging

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.