Release Notes: December 20, 2015
xUnit.net v2 2.2 Beta 1
Core framework
-
Added event assertions:
Assert.Raises
Assert.RaisesAsync
Assert.RaisesAny
Assert.RaisesAnyAsync
Assertion is done with three lambdas:
- A subscription lambda (i.e.,
handler => myClass.MyEvent += handler
)
- An unsubscription lambda (i.e.,
handler => myClass.MyEvent -= handler
)
- An action which causes the event to be raised
For examples, see the unit tests.
- Added
Assert.PropertyChangedAsync
.
- Added support for sets to
Assert.Equal
.
- Added
Skip
property to theory data attributes.
- Added support for trait attributes at the assembly level.
- Updated
NUnitXml.xslt
to be compatible with NUnit 2.5 output.
- Improved console runner error message when an unknown switch is passed.
-
BUG: Fixed an issue where PCL unit tests were run in desktop
mode instead of PCL mode, which caused issues when linking against PCL-based
extensibility libraries.
-
BUG: Fixed an issue when running unit tests from UNC paths
(not mapped to a drive letter).
-
BUG:
ArgumentFormatter
was causing a null
reference exception when attempting to format an unbound generic type.
-
BUG: Fixed an issue where trying to perform multiple XML
transformations at the same time caused a file sharing violation.
Console Runner
- Added a new JSON reporter with the
-json
switch.
- Made console runner exit codes consistent and predictable.
-
Ensured
xunit.runner.console
NuGet package is marked with
developmentDependency=true
.
MSBuild Runner
-
Added
IgnoreFailures
option, which allows the task to return
a success exit code even when one or more tests have failed.
- Added a new JSON reporter with the
json
reporter type.
-
Ensured
xunit.runner.msbuild
NuGet package is marked with
developmentDependency=true
.
Extensibility
- Added additional diagnostic messages to
TheoryDiscoverer
.
Visual Studio Runner 2.2 Beta 1
For information on using xUnit.net from within Visual Studio, see
Running xUnit.net tests in Visual
Studio.
-
Ensured
xunit.runner.visualstudio
NuGet package is marked with
developmentDependency=true
.
-
BUG: Fixed a significant memory leak issue when running
multiple test assemblies.
-
BUG: Fixed an issue where FullyQualifiedName filtering didn't
work with multiple tests of the same name.