Skip to content
David Cumps
BENUG Test Driven Development Session: TestDriven.NET

BENUG Test Driven Development Session: TestDriven.NET

Originally published on my old blog at cumps.be on September 9, 2004.

Today I went to a BENUG session about test driven development, and I finally got NUnitAddin to work ;)

A small recap of today:

  1. Get TestDriven.NET 0.9.615d, this includes MbUnit along with NUnitAddin already set up to work with MbUnit. No more need to edit that config file yourself. The future testing tool is TestDriven.NET ;)
  2. Reference Core, Framework and TestFu in your project.
  3. Add [TestFixture] as attribute to your class.
  4. Add [Test] as attribute to a method.
  5. Right click somewhere in the class and Run Tests, to run them all, or right click in one method to only run that one.
  6. Watch the Output window display success or failure, and the report URL at the end.
  7. Ctrl+click the URL to see a detailed report (view example).

For all other news, I redirect you to Jonathan de Halleux’s blog, where he talks about the Database Populator Framework and other nice testing stuff.

Note: if you have installed csUnit, leave it installed! Do not uninstall it unless you know enough about the uninstall possibly breaking your VS.NET installation. I uninstalled it today, and poof, adding classes and everything else through VS.NET was broken. The solution: repair VS.NET :(

You May Also Like