IXunitSerializable
interface. This means anybody implementing
serialization for test cases no longer has to implement it twice, and can now
remove the [Serialization]
constructor and remove the implementation
of ISerializable
. The new serialization system supports most of the
built-in intrinsic types (int
, long
, float
,
double
, decimal
, string
, and their
nullable counterparts), any type which implements IXunitSerializable
,
and arrays which contain supported serializable types. (Note: the old
interface IGetTypeData
is no longer supported. Extenders should
implement IXunitSerializable
instead.)
IMessageSink
that is used solely for receiving
diagnostic messages. Runners can optionally pass this when they create either
XunitFrontController
or Xunit2
, and it is propagated
throughout the system. All extensibility points (implementations of
IDataDiscoverer
, ITestCaseOrderer
,
ITestCollectionOrderer
, ITestFrameworkTypeDiscoverer
,
ITraitDiscoverer
, IXunitTestCaseDiscoverer
,
IXunitTestCollectionFactory
, ITestFramework
,
ITestFrameworkDiscoverer
, and ITestFrameworkExecutor
)
can now get access to this message sink by adding IMessageSink
as
a constructor parameter.
EnvironmentalWarning
and IMessageAggregator
.
Anything which had previously been reporting environmental warnings during discovery
has now been converted to use the diagnostic message sink described above. In
addition, several code locations that previously could not log issues (because they
happened outside of discovery or execution) are now able to report diagnostic
messages. This should aid developers writing extensibility points because we can
now report more issues related to creating and using these extensions. (We also
updated IDiscoveryCompleteMessage
to remove the Warnings
property.)
XunitTestInvoker.BeforeAfterAttributes
to inheritors.-nologo
switch to suppress the runner header/copyright.-quiet
switch to suppress discovery/execution meta-messages.-debug
switch to launch the debugger on startup.Diagnostic messages are turned off by default. To enable diagnostic messages for a given assembly, please see Configuring xUnit.net.
Diagnostic messages are turned off by default. To enable diagnostic messages for a given assembly, please see Configuring xUnit.net.
For information on using xUnit.net from within Visual Studio, see Running xUnit.net tests in Visual Studio.
Note: This release supports all released versions of xUnit.net v1, as well as v2 2.0 RC2 or later. It does not support any earlier versions of xUnit.net v2.
Diagnostic messages are turned off by default. To enable diagnostic messages for a given assembly, please see Configuring xUnit.net.
For information on using xUnit.net from within ASP.NET 5, see Getting started with xUnit.net and ASP.NET 5.
Note: This release supports xUnit.net v2 2.0 RC2 or later. It does not support any earlier versions of xUnit.net v2.
-nologo
switch to suppress the runner header/copyright.-quiet
switch to suppress discovery/execution meta-messages.-debug
switch to launch the debugger on startup. Note that this only
works with the desktop CLR, as Core CLR does not support Debugger.Launch()
.
-?
was being ignored.