Release Notes: May 31, 2023
xUnit.net v2 2.5.0 Pre-Release (build 22)
This is co-released with
ExcludeFromCodeCoverageAttribute to all the xUnit.net assemblies.
This should resolve issues with
dotnet test ---collect "Code Coverage" (the new
cross-platform code coverage system) incorrectly showing coverage for xUnit.net itself.
Updated support for TeamCity, to better support flow IDs, which should now correctly show hierarchy
with test collections, as well as supported nested flows via
We are now shipping .NET 4.8 and 4.8.1 versions of
xunit.console.x86.exe. New MSBuild parameters are available (when referencing
xunit.runner.console NuGet package) which point to the console runner
executable on disk:
BUG: Fixed an issue where a malformed
could cause tests to become inappropriately ignored due to an exception throw during discovery.
Now, when a test method is decorated with a misbehaving attribute, the test will still be
discovered, and when run it will fail with information about the failure. Unaffected tests
in the same class will no longer be affected by this failure.