Since the last release, we have moved to The .NET Foundation. The most visible sign of this is that you'll see the foundation CLA bot monitoring our pull requests. We are also operating under their Code of Conduct. Thank you to the .NET Foundation for our new home!
xunit.assert.sourceis now correctly marked as a development-time dependency in the NuGet package.
-noautoreportersswitch was added to disable any automatic environmentally enabled runner reporters (for example, AppVeyor or TeamCity).
NoAutoReportersproperty was added to disable any automatic environmentally enabled runner reporters (for example, AppVeyor or TeamCity).
Verbosewere officially removed. The
Reporterproperty (with a value of
verbose) should be used instead.
IMessageSinkWithTypeswas added as part of the work to dramatically improve the discovery and execution performance of v2 unit tests. Runners which have custom message sinks should implement this new interface rather than the older
IMessageSinkinterface. Most of the methods in the system have been updated (or extended) to accept both interface types. When that wasn't possible, two classes were added that can wrap implementations of one into the other (for more information, see
IMessageSink) have been deprecated due to their poor performance. New event-based sink classes (based on
IMessageSinkWithTypes) have replaced them. The new sink classes use events that can be subscribed to; these replace the old virtual methods in the visitor classes. The new sink classes have a significantly improved class hiearchy.
IMessageSinkWithTypesfor best compatibility and performance. The
DefaultRunnerReporterMessageHandlerbase classes has been deprecated, and replaced with
DefaultRunnerReporterWithTypesMessageHandler, which implement the new high-performance message sink interface.
TestDiscoverySinknow includes the ability to cancel test discovery;
TestDiscoveryVisitordid not include this ability.
For information on using xUnit.net from within Visual Studio, see Running tests with Visual Studio in the Getting Started documentation.