MbUnit now supports a simple way of running a single fixture (the one you are working on) without the need of a GUI or NUnitAddIn. The method is simple: tag your fixture class with the CurrentFixtureAttribute and launch it with the auto-runner:
Consider this little example:
[TestFixture] public class MyFixture { ... }
using System; namespace MbUnit.Tests { using MbUnit.Core; using MbUnit.Core.Filters; public class AutoRunTest { public static void Main(string[] args) { using(AutoRunner auto = new AutoRunner()) { auto.Domain.Filter = FixtureFilters.Current; auto.Run(); auto.ReportToHtml(); } } } }
(available in 2.18.1)
Page rendered at Thursday, July 24, 2008 5:06:44 AM UTC
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.