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.source
is now correctly marked as a development-time
dependency in the NuGet package.
-noautoreporters
switch was added to disable any automatic
environmentally enabled runner reporters (for example, AppVeyor or TeamCity).
NoAutoReporters
property was added to disable any automatic
environmentally enabled runner reporters (for example, AppVeyor or TeamCity).
TeamCity
and Verbose
were officially removed. The Reporter
property (with a value of
teamcity
or verbose
) should be used instead.
IMessageSinkWithTypes
was 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 IMessageSink
interface.
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
MessageSinkAdapter.Wrap
and
MessageSinkWithTypesAdapter.Wrap
).
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.
IMessageSink
and IMessageSinkWithTypes
for best
compatibility and performance. The DefaultRunnerReporter
and
DefaultRunnerReporterMessageHandler
base classes has been
deprecated, and replaced with DefaultRunnerReporterWithTypes
and
DefaultRunnerReporterWithTypesMessageHandler
, which implement
the new high-performance message sink interface.
TestDiscoverySink
now includes the ability to cancel test
discovery; TestDiscoveryVisitor
did not include this ability.
TestRunner.cs
.
For information on using xUnit.net from within Visual Studio, see Running tests with Visual Studio in the Getting Started documentation.
vstest.console.exe
.