Lightlines
By wshaddix

dotnet-xunit

wshaddix611 installs

Write .NET tests with xUnit v3 best practices.

What it does

Guides the writing of .NET tests with xUnit v3, including shared setup, parallel execution, assertions, and v2 compatibility.

When to use it

Use when writing xUnit tests.

How to use it

It changes how the agent writes xUnit tests, organizing test cases, shared resources, parallelism, asynchronous setup, and test data.

What you provide

  • An existing project

Latest review

What you need · 4

The primary xUnit v3 path assumes .NET 8.0 or later.

Requires xUnit packages already referenced in a scaffolded test project; xunit.v3 is the package for the primary v3 path.

Names prior test-project scaffolding through dotnet-add-testing as a prerequisite, with xUnit packages already referenced.

Instructs the agent to run dotnet-version-detection to confirm the .NET baseline before using xUnit v3.


Access · 0

No additional actions listed.