Tigraine
Daniel Hoelbling talks about programming

.NET Unit testing tools

May 31st, 2009 . by Daniel Hölbling

After posting my tools list today I got asked why I didn’t list any testing frameworks. Obviously, I love testing, so why no testing tools like Gallio, NUnit or Testdriven.NET etc?
The answer is rather simple, Resharper runs my tests for me.

By default Resharper can run NUnit tests, if you install Mbunit it can run those too, and if you just copy over the resharper support library from the XUnit contrib project to your Resharper/Plugins directory it can also run XUnit.

image

Also, almost all open source frameworks out there include their test runner in their code tree, so you don’t need to worry about what exotic test frameworks are out there, you’ll be provided with the appropriate runners.

On the testing framework side I recently (~4 months) switched over to xUnit as it’s syntax felt much better than that of xUnit or Mbunit.
Also I am currently looking into maybe using a BDD testing framework like MSpec.


  • http://therightstuff.de/ Alexander Groß

    Daniel,

    MSpec is not built on top of xUnit, but uses xUnit (or NUnit, for that matter) for asserting the “ShouldXxx” extension methods.

    MSpec could be rebuilt using xUnit, though.

    Alex

  • http://www.tigraine.at Daniel Hölbling

    Oh, sorry about that. I somehow thought MSpec is built ontop of xUnit. I’ll correct the post right away.

    Must have mixed it up with the BDD extension for xUnit: http://code.google.com/p/xunit-bdd-extensions/

    Thanks for pointing this out!