/// <summary> /// Executes the tests in an assembly. /// </summary> /// <param name="listener">An ITestEventHandler that receives progress notices</param> /// <param name="filter">A filter that controls which tests are executed</param> /// <returns>An Xml string representing the result</returns> public string Run(ITestEventListener listener, TestFilter filter) { CallbackHandler handler = new RunTestsCallbackHandler(listener); log.Info("Running {0} - see separate log file", Path.GetFileName(_testAssemblyPath)); CreateObject(RUN_ACTION, _frameworkController, filter.Text, handler); return(handler.Result); }
public string Run(ITestEventListener listener, string filter) { CheckLoadWasCalled(); var handler = new RunTestsCallbackHandler(listener); log.Info("Running {0} - see separate log file", Path.GetFileName(_testAssemblyPath)); // ReSharper disable once ObjectCreationAsStatement new FrameworkController.RunTestsAction(_frameworkController, filter, handler); return(handler.Result); }
/// <summary> /// Executes the tests in an assembly. /// </summary> /// <param name="listener">An ITestEventHandler that receives progress notices</param> /// <param name="filter">A filter that controls which tests are executed</param> /// <returns>An Xml string representing the result</returns> public string Run(ITestEventListener listener, string filter) { CheckLoadWasCalled(); CallbackHandler handler = new RunTestsCallbackHandler(listener); log.Info("Running {0} - see separate log file", Path.GetFileName(_testAssemblyPath)); CreateObject(RUN_ACTION, _frameworkController, filter, handler); //RUN_ACTION=NUnit.Framework.Api.FrameworkController+RunTestsAction return(handler.Result); }
/// <summary> /// Executes the tests in an assembly. /// </summary> /// <param name="listener">An ITestEventHandler that receives progress notices</param> /// <param name="filter">A filter that controls which tests are executed</param> /// <returns>An Xml string representing the result</returns> public string Run(ITestEventListener listener, string filter) { CheckLoadWasCalled(); CallbackHandler handler = new RunTestsCallbackHandler(listener); log.Info("Running {0} - see separate log file", Path.GetFileName(_testAssemblyPath)); CreateObject(RUN_ACTION, _frameworkController, filter, handler); return handler.Result; }