February
20
MbUnit vs. NUnit Vs. Team System Unit Testing - Choosing a unit test framework
Posted In: TDD by rauchy
I was trying to figure out which unit testing framework to adopt on a project I’m involved with. My hunch was definitely NUnit & MbUnit ( where appropriate ), but a couple of dudes in the project pulled an impressive comparison table that almost had me convinced on choosing Visual Studio Team Test. Then I stumbled upon the following post by Roy Osherove ( bow down ) which made me realize that Visual Studio Team Test is probably not the way to go any time soon. Make sure you read the discussion following the post.
The main issues that pissed me off are:
- Bugs - Sure, NUnit has bugs as well, but at least its open-source and frequently released.
- Coupling to Visual Studio - No standalone UI.
- Inheritance Not Supported - The showstopper. If you can’t inherit, your are prone to sloppy design which will eventually lead you to code duplication and/or poor coverage. see http://vaultofthoughts.net/TestMethodInTheAbstractClass.aspx.