Sign in

xUnit.net

@xunit.net
346 followers 1 following 148 posts

xUnit.net is a free, open source, community-focused unit testing tool for .NET. Source is available at github.com/xunit. Currently maintained by mastodon.social/@bradwilson.

PostsRepliesMedia
xUnit.net @xunit.net · 12/04/2026
Based on this poll, we will be removing support for Visual Studio 2019 and out-of-support versions of Visual Studio 2022 from `xunit.analyzers` sometime before the final 2.0.0 release.
A poll about Visual Studio usage with xUnit.net.

0% voted for VS 2019
0% voted for VS 2022 (older than 17.8)
7% voted for VS 2022 (17.8 or newer)
93% voted for VS 2026
040
xUnit.net @xunit.net · 01/04/2026
We will be removing Microsoft Testing Platform v1 support from the next major release, moving to v2 as the default. We will still support your ability to choose to disable MTP as well. #DotNet #UnitTest
Poll results:
"Yes, we still use MTP v1" 0%
"No, we only use MTP v2" 52%
"No, we don't use MTP" 31%
"I'm not sure what we use" 17%
193
xUnit.net @xunit.net · 31/12/2025
The new options, shown here in Visual Studio 2026 and `dotnet new xunit3 -?`
The Visual Studio 2026 "New Project" UI, showing the two new options: "Test runner for 'dotnet test' and Test Explorer", and "Command line experience for 'dotnet run'".Shows the new command line switches for "dotnet new xunit3":

* "--test-runner" controls the test runner for "dotnet test" and Test Explorer, and has options for "mtp-v2", "mtp-v1", and "vstest". The default is "mtp-v2".
* "--command-line" controls the command line experience for "dotnet run", and has options "xunit" and "mtp". The default is "xunit", and is only available when "--test-runner" is not set to "vstest".
000
xUnit.net @xunit.net · 11/12/2025
We're merging in the changes for a Native AOT compatible assertion library, because these files are frequently touched. The separation process makes them hard to merge over time. Attached are lists of files added/changed in xunit/xunit and xunit/assert.xunit.
A list of files changed in xunit/xunit. You can see the list in commit hash ba0a606d73ece9dbb2755bb8d41b4a9f37dda70c.A list of files changed in xunit/assert.xunit. You can see the list in commit hash f8375ef34d2f0584009c78f3bb11b1a57dd8b12f.
120
xUnit.net @xunit.net · 05/07/2025
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?
Screenshot of api.xunit.net showing the home page for the v3 2.0.3 API, with a list of commonly used types.
041
xUnit.net @xunit.net · 13/02/2025
With the release of VS 2022 17.13, you may notice Test Explorer behaves slightly differently with your v3 test projects. That's because they have enabled Microsoft.Testing.Platform preview features by default. If you have issues, you can uncheck this box to revert back. #DotNet
The dialog box from Tools > Options, under Environment > Preview Features, showing the check box titled "Use testing platform server mode" being checked. To disable Microsoft.Testing.Platform support, uncheck this box and restart Visual Studio.
130
xUnit.net @xunit.net · 24/01/2025
Do you think it's weird that v3 test projects are stand-alone executables? You're not alone. Here is a brief history behind the decision. github.com/xunit/xunit/... #DotNet #UnitTest #MicrosoftTestingPlatform
190
xUnit.net @xunit.net · 19/01/2025
Weird. Someone seems to have turned out the lights. (If you see something we missed, please raise an issue!)
The xUnit.net home page in light modeThe xUnit.net home page in dark mode
030