What problem does it solve?
This Skill helps developers write, run, and repair .NET tests using the xUnit framework, especially when they are unsure about the correct CLI commands, package configurations, or runner setups for VSTest or Microsoft.Testing.Platform.
Core Features & Use Cases
- xUnit Detection: Identifies the specific version of xUnit and the active test runner (VSTest or Microsoft.Testing.Platform).
- Test Execution Guidance: Provides correct commands for running tests, including filtering by project, class, or method.
- Bootstrap Missing Setup: Assists in adding necessary xUnit packages and configuring
AGENTS.md if xUnit is not yet set up.
- Use Case: A developer needs to add a new regression test to a .NET project that uses xUnit v3 and the Microsoft.Testing.Platform runner. This Skill will guide them on the correct packages to add, the command to run the test, and how to ensure CI compatibility.
Quick Start
Use the mcaf-dotnet-xunit skill to add a new xUnit test to the 'MyProject.Tests' project.