CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Darrell Norton's Blog [MVP]

Fill in description here...

NUnit v2.1 RC released

NUnit v2.1 RC1 was released last night on SourceForge.  From the release documentation:

* Support for the .NET framework versions 1.0 and 1.1
* The ability to run test suites across multiple assemblies
* New TestFixtureSetup and TestFixtureTeardown attributes
* Improvements to the GUI interface
* New command line switches for both GUI and Console runners
* Some degree of integration with Visual Studio
* Tests now execute in the same order as they are displayed in the gui.
* Substantial improvements in error and exception reporting.
* Now runs on Windows 98

Support for v1.1 of the Framework is no big deal, all you had to do was change the application config file

I'm interested to look into what the integration with Visual Studio is like and the improvements in error reporting.  I use NUnit more often than I fire up the debugger, so hopefully this will further reduce my dependency on VS.NET's debugger.  The TestFixtureSetup and TestFixtureTeardown attributes look like they can reduce the processing cycles required, and thus speed up running the tests, since the code in them is only executed once per TestFixture, instead of before and/or after each Test (which is what we are all doing now, right??). 

I'm reserving judgement on the test execution order display.  Tests should be standalone, with no dependency on any other test.  I am afraid that such a feature will encourage bad development practices (i.e., writing code that depends on the order of the tests running instead of creating idempotent tests).



Comments

some random .net coder said:

Install nunitaddin http://sourceforge.net/projects/nunitaddin/

You right-click on a project in the solution explorer, select "Run Tests" and it runs nunit on the project's assembly. It even includes a system tray application on which you can force debugging on (it throws an exception, which asks you to pick a debugger), at which point the next time you run a test, your breakpoints will be hit in the debugger.

I have been using it for less than two hours and I am already loving it.
# October 16, 2003 10:00 AM
Check out Devlicio.us!