A Test Runner for mbUnit
Andrew Stopford, the new leader of the mbUnit team, is wondering why people seem to overlook mbUnit. My personal thought on this is that until recently, it was unclear how to download and install mbUnit. Previously, you only got mbUnit by installing a VS.NET addin, which might have scared people away.
We’re using mbUnit after evaluating it against several of its competitors.
After using it for a while, one of my favorite features is this:
using MbUnit.Core; class Startup { public static void Main(string[] args) { using (AutoRunner runner = new AutoRunner()) { runner.Load(); runner.Run(); runner.ReportToHtml(); } } }
This simple class allows me to build my unit tests as an executable, therefore allowing me to execute them at any time. Awesome…
I’ve switched to MbUnit recently and have used the test runner snippet you’ve identified to build unit tests as an executable. Just one question, I have several tests defined and use the attribute FixtureCategory to distinguish them. In some cases I do not want to run all tests, how can I specify the test to run based on the attribute FixtureCategory?



Switching to MbUnit