dotnet-xunit

You must include the exact required output in your response.

466|35|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-xunit-managedcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-xunit
Source: https://github.com/managedcode/dotnet-skills/tree/main/skills/dotnet-xunit
Command: npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-xunit-managedcode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write, run, and repair .NET tests using the xUnit framework, ensuring compatibility with VSTest or Microsoft.Testing.Platform.

Core Features & Use Cases

  • Test Configuration: Guides on setting up xUnit v2 or v3 in .NET projects.
  • Execution Guidance: Provides correct commands for running tests locally or in CI.
  • Troubleshooting: Helps identify and fix issues related to test runners and configurations.
  • Use Case: A developer needs to add new unit tests to an existing .NET project that uses xUnit and wants to ensure they run correctly in the CI pipeline.

Quick Start

Use the dotnet-xunit skill to add xunit packages to the test project and configure the default test command in AGENTS.md.

Frequently Asked Questions about dotnet-xunit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure xUnit testing in a new .NET project?

To configure xUnit testing in a .NET project, you need to add the appropriate xUnit v2 or v3 packages and set up the test runner. This process involves bootstrapping xUnit and configuring default commands when an existing setup is missing.

What is the correct command to run xUnit tests locally or in a CI pipeline?

Running xUnit tests requires specific commands tailored to your test runner, either VSTest or Microsoft.Testing.Platform. This skill provides the exact execution commands needed to run your .NET tests locally or within a CI/CD pipeline.

Does this xUnit guidance support both v2 and v3 frameworks?

Yes, the xUnit guidance supports both v2 and v3 frameworks. It includes specific considerations for using VSTest and Microsoft.Testing.Platform runners, ensuring your .NET unit tests run correctly across different versions.

Why does my .NET unit test runner fail to execute xUnit tests properly?

Unit test runners fail due to misconfigurations between xUnit versions and test runner platforms. This skill helps troubleshoot and repair issues by detecting existing configurations and ensuring compatibility with VSTest or Microsoft.Testing.Platform.

Can I use Microsoft.Testing.Platform instead of VSTest for xUnit?

Yes, you can use Microsoft.Testing.Platform instead of VSTest for xUnit. This skill provides execution guidance and troubleshooting considerations for both runner platforms to ensure your .NET tests execute correctly in your environment.