InfoQ

News

NUnit 2.5 Alpha released

Posted by Mark Levison on May 23, 2008 01:00 AM

Community
.NET,
Agile
Topics
Unit Testing
Tags
TDD ,
NUnit

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.

Related Sponsor

VersionOne is recognized by Agile practitioners as the leader in Agile project management tools. Companies such as Adobe, BBC, CNN, Dow, HP, IBM, Sony and 3M have turned to VersionOne to help deliver greater value to their customers.

No comments

Reply

Exclusive Content

Ruby.rewrite(Ruby)

In this RubyFringe talk, Reginald Braithwaite writes Ruby code to read, write, and rewrite Ruby. Demos include extending Ruby with conditional expressions, call-by-name and more.

Book Except and Interview : Aptana RadRails, An IDE for Rails Development

Aptana RadRails: An IDE for Rails Development by Javier Ramírez discusses the latest Aptana RadRails IDE, a development environment for creating Ruby on Rails applications.

Fast Bytecodes for Funny Languages

Cliff Click discusses how to optimize generated bytecode for running on the JVM. Click analyzes and reports on several JVM languages and shows several places where they could increase performance.

Scott Ambler On Agile’s Present and Future

Scott Ambler, Practice Lead for Agile Development at IBM, speaks on the current status of the Agile community and practices having a look at the perspective of the Agile’s future.

Manager's Introduction to Test-Driven Development

Dave Nicolette and Karl Scotland try to introduce non-technical managers to one of the most popular Agile development techniques: Test-Driven Development (TDD).

Structured Event Streaming with Smooks

Smooks is best known for its transformation capabilities, but in this article Tom Fennelly describes how you can also use it for structured event streaming.

How to Work With Business Leaders to Manage Architectural Change

Successful architectures evolve over time to meet changing business requirements. Luke Hohmann presents how to collaborate with key members of your business to manage architectural changes.

Colors and the UI

In this article, Dr. Tobias Komischke explains how colors used in a GUI can influence our interaction with a computer and offers advice on using the appropriate colors for the interface.