Take a look at the TestLauncher API. http://www.gallio.org/api/html/T_Gallio_Runner_TestLauncher.html
If you want more control over the test execution process, or if the test assemblies are already loaded into memory, then you might consider using the DefaultTestRunner instead. Let me know and I can give you an example of that. Jeff. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Douglas Sent: Saturday, May 02, 2009 2:05 PM To: MbUnit.User Subject: MbUnit Run test fixtures from inside application Hello, I would like to run my test fixtures from inside my application, but all of the examples of running tests that I can find do so through an external application. For example, say I have the fixture: public class ExampleFixture { [Test] public void SimpleTest() { Assert.AreEqual(2, 1 + 1); } } I would like to have code like: var results = TestRunner.Execute(typeof(ExampleFixture)); And then be able to inspect the results of the test through the results object. What should the snipped above be? Thanks, Douglas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
