xUnit.net
banner
xunit.net
xUnit.net
@xunit.net
xUnit.net is a free, open source, community-focused unit testing tool for .NET. Source is available at https://github.com/xunit/.

Currently maintained by https://mastodon.social/@bradwilson.
If you are using a test case orderer today (implementing `ITestCaseOrderer`), take a peek at this issue that wants to introduce `ITestClassOrderer` and `ITestMethodOrderer` and the impact it has on developers using test case orderers today. Feedback welcome! github.com/xunit/xunit/...
Can ITestClassOrderer be added to complete the ordering support on all levels? · Issue #3424 · xunit/xunit
✅ Assembly is a list of collections - we can order those with ITestCollectionOrderer ❌ Collection is a list of classes - we can not order those (request for ITestClassOrderer) ✅ Class is a list of ...
github.com
November 10, 2025 at 12:28 AM
We just shipped Core Framework v3 3.2.0 and Analyzers 1.25.0.

This includes optional support for Microsoft Testing Platform v2. Check the release notes for more information.

xunit.net/releases/v3/...
xunit.net/releases/ana...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes | xUnit.net
xunit.net
November 2, 2025 at 7:37 PM
Microsoft.Testing.Platform v2 support is now available in a prerelease CI build. Note that we will continue to support v1 by default; you must opt into v2.

More information: github.com/xunit/xunit/...

#DotNet #MicrosoftTestingPlatform
XUnit.V3 compatible version for MTP 2.0.0 · Issue #3416 · xunit/xunit
We are currently updating to MTP 2.0.0 for one of our testing extensions. Since we are using xunit.v3 across our whole code base, we need a compatible version of xunit.v3. Otherwise we run into the...
github.com
October 25, 2025 at 9:44 PM
Just a reminder that we have delayed plans to support MTP v2. Any attempt to use any parts of MTP v2 with xUnit.net v3 will result in failure due to incompatibilities.
Home | xUnit.net
xUnit.net
October 8, 2025 at 4:37 PM
We just shipped Core Framework v3 3.1.0 and Visual Studio adapter 3.1.5.

Check the release notes for new features and bugs fixed.

xunit.net/releases/v3/...
xunit.net/releases/vis...

#DotNet #CSharp #FSharp #UnitTest #TDD
September 28, 2025 at 12:30 AM
Thank you @bitwarden.bsky.social for your generous support of xUnit.net! github.com/sponsors/xunit
Sponsor @xunit on GitHub Sponsors
Support xUnit.net's open source work
github.com
September 17, 2025 at 5:34 PM
We just shipped Core Framework v3 3.2.0-pre.5.

This is specifically for users who wish to try the preview of Microsoft Testing Platform v2. Estimated RTM for 3.2.0 will be close to .NET 10 RTM.

3.1.0 RTM will be later this month.

xunit.net/releases/v3/...

#DotNet #CSharp #FSharp #UnitTest #TDD
Core Framework v3 3.2.0-pre.5 | xUnit.net
xunit.net
September 5, 2025 at 8:22 PM
We just shipped Core Framework v3 3.0.1, Analyzers 1.24.0, and Visual Studio adapter 3.1.4.

Check the release notes for new features and bugs fixed.

xunit.net/releases/v3/...
xunit.net/releases/ana...
xunit.net/releases/vis...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes | xUnit.net
xunit.net
August 16, 2025 at 2:51 AM
The last core framework release was July 13. We definitely have enough for a new release next week. If you're so inclined, maybe pick up a CI build and test it before we ship and/or raise awareness of anything you want fixed. xunit.net/docs/using-c...

#DotNet #CSharp #FSharp #UnitTest #TDD
Using CI Builds | xUnit.net
xunit.net
August 6, 2025 at 10:03 PM
Given that xUnit.net runs tests in random order by default, would changing the randomization order (in order to fix a bug) just be considered a bug fix or a breaking change?

Asking for a SemVer.

(Poll is on Mastodon, as Bluesky doesn't have polls.) dotnet.social/@xunit/11493...

#DotNet #UnitTest
xUnit.net (@xunit@dotnet.social)
Given that xUnit.net runs tests in random order by default, would changing the randomization order (in order to fix a bug) just be considered a bug fix or a breaking change? Asking for a SemVer. #Do...
dotnet.social
July 29, 2025 at 6:07 PM
July 24, 2025 at 8:33 PM
We just shipped Visual Studio adapter 3.1.3.

This is a bug fix release to address a failure case when running xUnit.net v2 tests.

xunit.net/releases/vis...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes | xUnit.net
xunit.net
July 16, 2025 at 9:15 PM
We just shipped Core Framework v3 3.0.0, Analyzers 1.23.0, and Visual Studio adapter 3.1.2.

Check the release notes for breaking changes, new features, and bugs fixed.

xunit.net/releases/v3/...
xunit.net/releases/ana...
xunit.net/releases/vis...

#DotNet #CSharp #FSharp #UnitTest #TDD
Core Framework v3 3.0.0 | xUnit.net
xunit.net
July 14, 2025 at 2:36 AM
In preparation for publishing v3 3.0.0, we've switched over to the new website at xunit.net (and new.xunit.net is no longer published).

The new content lives at github.com/xunit/xunit.... (the old `gh-pages` branch of xunit/xunit will be deleted soon).

Let us know of any issues with the new site!
Home | xUnit.net
xunit.net
July 13, 2025 at 6:07 PM
We just shipped a new prerelease build of the core framework (3.0.0-pre.40).

There are no new breaking changes, so this will not reset our release clock for 3.0.0 (which should be in about a week).

xunit.net/releases/v3/...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes for v3 3.0.0-pre.40 [2025 July 6]
Documentation site for the xUnit.net unit testing framework
xunit.net
July 6, 2025 at 8:12 PM
We updated the API documentation pages to include a version home page which includes a list of commonly used types. api.xunit.net

What do you think about the type list? Things you would add/remove?
July 5, 2025 at 9:42 PM
A prototype of the new web site is live at new.xunit.net. The only thing missing from this is integrating the API content, which we're working on before we ship 3.0 (at which point we'll have the new site live).

Please poke and prod and let us know what's broken!
Home | xUnit.net
new.xunit.net
July 5, 2025 at 4:08 AM
We just shipped a new prerelease build of the core framework (3.0.0-pre.25).

This includes new breaking changes since last week's prerelease. Please check the release notes for more information.

xunit.net/releases/v3/...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes for v3 3.0.0-pre.25 [2025 June 15]
Documentation site for the xUnit.net unit testing framework
xunit.net
June 16, 2025 at 12:55 AM
We just shipped prerelease builds of core framework (3.0.0-pre.15) and analyzers (1.23.0-pre.3).

This is a major version update with breaking changes. Check the release notes for more information.

xunit.net/releases/v3/...
xunit.net/releases/ana...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes for v3 3.0.0-pre.15 [2025 June 7]
Documentation site for the xUnit.net unit testing framework
xunit.net
June 8, 2025 at 3:30 AM
We just shipped core framework v3 2.0.3, analyzers 1.22.0, and Visual Studio adapter 3.1.1.

Check the release notes for new features and bugs fixed.

xunit.net/releases/v3/...
xunit.net/releases/ana...
xunit.net/releases/vis...

#DotNet #CSharp #FSharp #UnitTest #TDD
xunit.net
June 7, 2025 at 7:15 AM
For 3.0.0, we will be shipping at least one prerelease version, to be able to collect feedback on (and give time to evaluate the impact of) the breaking changes.

In retrospect, we should have done this for 2.0.0. This will be the policy going forward. #DotNet #CSharp #FSharp
May 29, 2025 at 3:24 PM
We just shipped core framework v3 2.0.2 and Visual Studio adapter 3.1.0.

Check the release notes for new features and bugs fixed.

Note: The Visual Studio adapter has moved up to .NET 8 (from .NET 6).

xunit.net/releases/v3/...
xunit.net/releases/vis...

#DotNet #CSharp #FSharp #UnitTest #TDD
Release Notes for v3 2.0.2 [2025 May 3]
Documentation site for the xUnit.net unit testing framework
xunit.net
May 3, 2025 at 11:55 PM
We have a prototype of the API documentation online: api.xunit.net

We're not sure if it will live on a separate URL forever, but until the main site is rebuilt with DocFX, this is how it has to be for now.

Feedback welcome!

#DotNet #UnitTest #TDD
April 9, 2025 at 7:11 AM