BT

Your opinion matters! Please fill in the InfoQ Survey!

NUnit 2.5 Alpha released

| by Mark Levison  Followers on May 23, 2008. Estimated reading time: 2 minutes |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

NUnit is a Unit Test framework for the .NET languages. NUnit 1.x was straight port of the JUnit 3.8. With the 2.0 version NUnit was rewritten and redesigned as .NET application making use of Attributes instead of special methods and base classes.

Five versions and over five years later version 2.5 is in Alpha. This release includes support for:

  • Data Driven tests - using [TestCase] and [DataSource] allows data to passed into the test case via the Attributes.
  • Parallel and Distributed testing - a new test runner (PUnit) allows tests to run in parallel over several machines. This test runner was developed to help with the stress testing of a server.
  • Additionnal Asserts: Support for comparing file paths or directories without accessing the file system. More support for testing whether code does or doesn't throw an exception.
  • Run CSUnit tests: The CSUnitAddin supports running tests from another one of the major .NET test frameworks.
  • RowTestExtension: Allows developers to write RowTests for NUnit an alternative to NUnits [TestCase].
  • In addition the documentation has been updated.

 Other Major Features

  • Constraint based Assert model: In addition to the traditional assertions, NUnit allows you to say: Assert.That(myString, new EqualConstraint("Hello")); giving the user the flexibility to add their own constraints that are full participants in the NUnit eco-system.
  • Attributes that support declaring: Tests, Setup, Teardown, Fixture Setup/Teardown (per namespace setup/teardown), ...
  • Console and GUI test runners

Charlie Poole has also written to clear up confusion around the different versions of NUnit:

A few folks are confused by the various release numbers being announced or discussed all at one time, so I thought I’d clarify:

NUnit 2.4.7 is the latest production release of NUnit. It’s the one we recommend most people use for your tests. Some fairly critical performance bugs have been fixed in the last few releases, so you should update even if you’re only one or two digits back. See what you’re missing !

NUnit 3.0 is the planned - but not yet released - next generation NUnit. We call it the NUnit Extended Testing Platform, to distinguish it from the current NUnit Framework. It will provide a superset of the functionality of the current framework and is generally described here. I’ll be posting further info on NUnit 3.0 as it progresses.

NUnit 2.5 is release that wasn’t originally planned. The 2.4 series was supposed to be followed by 3.0. However, a number of people asked for a quicker release that included features provided by other test frameworks, which are currently missing from NUnit.

Other .NET Unit Test tools include: MBunit, CSUnit, xUnit.Net, NBehave and Gallio - an open, extensible, and neutral test runner designed to support all .NET test tools.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT