site/releases/v3/3.2.0.md
Today, we're shipping two new releases:
3.2.01.25.0 (release notes)It's been 5 weeks since the release of 3.1.0.
As always, we'd like to thank all the users who contributed to the success of xUnit.net through usage, feedback, and code. 🎉
These release notes are a list of changes from 3.1.0 to 3.2.0.
Assert.Throws and Record.Exception so that they will propagate skip exceptions (that is, any exception which is thrown whose message begins with $XunitDynamicSkip$). This allows dynamic skips to occur inside the lambda expressions for these two assertion methods, in addition to throws thrown directly from the test method itself. xunit/xunit#3412{: .issue-link }Xunit.SimpleRunner.AssemblyRunner could hang indefinitely if the developer did not subscribe to the OnExecutionComplete options event. xunit/xunit#3431{: .issue-link }This build includes updated Microsoft Testing Platform (MTP) support, in three forms:
There are three new top-level NuGet packages for this:
xunit.v3.mtp-v1xunit.v3.mtp-v2xunit.v3.mtp-offThe primary top-level package (xunit.v3) currently just includes xunit.v3.mtp-v1, making MTP v1 the default. If you want to use MTP v2 (or disable MTP), you can swap out your xunit.v3 package reference for the MTP-specific package of your choice. (You may also swap out xunit.v3 for xunit.v3.mtp-v1 to ensure you continue to use MTP v1 even if we choose to change the default to MTP v2.)
The xunit.v3.core package (which is where MTP support is wired up) has undergone the same treatment:
xunit.v3.core.mtp-v1xunit.v3.core.mtp-v2xunit.v3.core.mtp-offThe primary core package (xunit.v3.core) currently just includes xunit.v3.core.mtp-v1. If you want to use MTP v2 (or disable MTP), you can swap out your xunit.v3.core package reference for the MTP-specific package of your choice. (You may also swap out xunit.v3.core for xunit.v3.core.mtp-v1 to ensure you continue to use MTP v1 even if we choose to change the default to MTP v2.)
We opted to leave MTP v1 as the default for now, for two reasons:
At this point in time, we do not have a timeframe for when support for MTP v1 will be discontinued, as Microsoft has not announced any timeframe for the retirement of support for MTP v1.
MTP v1 support is using MTP version 1.9.0.
MTP v2 support is using MTP version 2.0.1.
This release includes a reference to Microsoft.Testing.Extensions.Telemetry, which collects some usage information for Microsoft. You can disable this metric collection by setting an environment variable named TESTINGPLATFORM_TELEMETRY_OPTOUT to 1. For more information about the information being collected, see Microsoft.Testing.Platform telemetry.