TestDriven.Net 2.21: Now includes NUnit 2.5 RC
Support for NUnit 2.5 RC
A couple of days ago, Charlie Poole announced that the first NUnit 2.5 release candidate is now uploaded. I’ve hurried to get a new version of TestDriven.Net with support for this version ready. I’m happy to announce that TestDriven.Net 2.21 Beta (which includes NUnit 2.5 RC) is now available for download.
This is a major NUnit release with lots of new features. Here is the list that was posted on the NUnit mailing list:
- Parameterized (data-driven) tests are supported, with features similar to those found in mbUnit and xUnit.net.
- Theories - as used in JUnit- are supported fully, including support for Assume.That.
- New attributes allow the specifying the thread and apartment state requirements of a test.
- Exception handling can now be moved into the test code using Assert.Throws or the Throws.Exception syntax.
- Test methods and fixtures may now be generic and many asserts and constraint expressions now support generic syntax.
- Many constraints now permit substitution of a user-defined comparison algorithm through the Using modifier. Lambda expressions are supported.
- Test execution may now take place in a separate process for better isolation.
- Tests may be loaded and executed using a selected runtime version.
- Tests, setup methods, teardown methods and data sources may be static if desired. If there are no instance methods, then NUnit doesn't need to construct your test class.
- Source code is displayed in the gui, where available.
Charlie has also posted a top 10 reasons try NUnit 2.5.
Improved x86 / 32-bit support on a 64-bit OS
This version also contains improved support for running tests in a 32-bit process. To configure a test project for 32-bit execution, simply select ‘x86’ as the ‘Platform target’ in the project properties. After doing this, the ‘Run Test(s)’ and ‘Test With > NUnit 2.5’ commands will execute your tests in a 32-bit process (this doesn’t work for NUnit 2.4). By default projects configured for ‘Any CPU’ will execute tests in a 64-bit process (unless you’re testing with NCover, Team Coverage or dotTrace).
Experimental Visual Studio 2010 support
TestDriven.Net was working with the Visual Studio 2010 PDC CTP version. Unfortunately I’ve had less luck with more recent pre-Beta versions (Visual Studio was crashing). You can try the experimental support by choosing ‘Custom’ setup and enabling the ‘Visual Studio 2010’ feature. There is a chance this will be working again when the Visual Studio 2010 Beta is released.
Trace/debug messages now appear in ‘Debug’ pane
When stepping through code started from TestDriven.Net, you may have noticed that trace/debug messages appeared in the ‘Test’ pane but not the ‘Debug’ pane. Trace/debug diagnostic messages will only appear in the ‘Test’ pane when targeting specific tests, but not when executing all tests in a project / solution.
Release Notes & Download
Here are links to the TestDriven.Net release notes and download.
Don’t hesitate to contact me or the NUnit team if you find any issues with this release.