Release Notes: November 19, 2014
Important notes
This release of the Visual Studio runner officially deprecates the VSIX package. If you've previously installed the VSIX package, you will have runner conflicts until you've removed the VSIX package. For more information, see the Getting Started page.
All projects
- Switched from Symbolsource to GitHubLink for source-level debugging.
xUnit.net v2 2.0 Beta 5
Core framework
- Added support for ASP.NET 5.0 (Beta 1). Runners will be forthcoming shortly.
- Added support for Windows Phone 8 (Silverlight).
- Added
ITestOutputHelper
(taken as a test class constructor dependency) to let tests report output.
- Added predicate support to
Assert.Contains
and Assert.DoesNotContain
.
- Updated
Assert.Contains
to include the collection in the assertion failure message.
- Removed
Assert.DoesNotThrow
.
- Switch tasks (used for parallelization) to use a custom thread pool.
- Updated assertion failures to object formatting that is consistent with theory parameter values.
- BUG: Fixed an issue when running xUnit.net v1 tests that throw exceptions without stack traces.
Extensibility
- Allow theory data providers to explicitly opt out of pre-enumeration (for expensive data sources, like databases).
- Added
ITest
to be able to differentiate between multiple tests for a single test case.
- Added
ITestOutput
message to report real-time output capture from tests.
- Added
IDiagnosticMessage
to report diagnostic information (not wired up yet).
- Added
ITestCollectionOrderer
to allow end-user customization of the run order of test collections.
- Convert runner extensibility points (
TestXxxRunner
and friends) to be async.
- Made
TestMethodTestCase.SetData
virtual.
Console and MSBuild Runners
- Grand total time in Console and MSBuild runners includes both aggregate time and clock time.
- The console runner can now run multiple assemblies.
- Console runner supports
-class
and -method
to run specific test classes and test methods.
- Added
Discovering
and Discovered
output to the MSBuild runner.
- Removed unused
-silent
option from console runner.
- BUG: Output for v1 XML was accidentally duplicating output when running mulitple assemblies.
- BUG: Running assemblies without any tests previously silently failed in the Console and MSBuild runners.
Visual Studio runner 0.99.9
- Update
xunit.runner.visualstudio
to support PCLs.
- Removed the VSIX. All deployments are done via NuGet only now.
- BUG: Fix linking issues that prevented using the NuGet package with xUnit.net 1.x tests.
- BUG: Fix issues where Win8, Win8.1, and WPA8.1 tests didn't run without the VSIX.
- BUG: Fix issue where Visual Studio runner could not run private test methods.
Samples
- Added
[STAFact]
and [STATheory]
sample (from @Haacked)
- Added
[RetryFact]
sample
- Added test collection ordering sample
- Added observation sample (currently being fixed for beta 5)