Travis Illig took my NUnit/Watir integration POC and ran screaming down the street with it and has released his code on CodeProject. There are also some other integration projects in a similar vein going on that I'll post about later.
Travis' solution is clever in it's use of attributes. It does everything automatically that I did manually with resource extraction. The easiest way to grok it is to look at a sample NUnit test you'd write:
using RTE = Foo.RubyTestExecutor;
public class RubyTestExecutor
[Test(Description="Verifies you may run standard NUnit-only tests.")]
public void NUnitOnly_NoRubyAttrib()
Assert.IsTrue(true, "This NUnit-only test should always pass.");
[Test(Description="Verifies a valid Ruby test will execute.")]
public void RubyTest_Valid()
[Test(Description="Verifies a valid WATIR test will execute.")]
public void WatirTest_Valid()
[Test(Description="Verifies Ruby support files can be extracted.")]
public void RubySupportFile_Valid()
It's the ExecuteTest() of course that does all the heavy lifting by walking the call stack looking for Attributes and acting on them. Check out his article and get involved.
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. I am a failed stand-up comic, a cornrower, and a book author.
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.