public static void Run( RegressionSession session, RegressionExecution execution, bool usePerfContext = false) { using (PerformanceScope(usePerfContext)) { RunInternal(session, execution); } }
private static void RunInternal( RegressionSession session, RegressionExecution execution) { if (session.Runtime == null) { var exists = EPRuntimeProvider.HasRuntime(EPRuntimeProvider.DEFAULT_RUNTIME_URI); var runtime = EPRuntimeProvider.GetDefaultRuntime(session.Configuration); if (exists) { runtime.Initialize(); } session.Runtime = runtime; } LOG.Info("Running test " + execution.Name()); execution.Run(new RegressionEnvironmentEsper(session.Configuration, session.Runtime)); }
private void PerformanceRun(RegressionExecution execution) { using (new PerformanceContext()) { RegressionRunner.Run(session, execution); } }
public static void RunPerformanceSensitive( RegressionSession session, RegressionExecution execution) { Run(session, execution, true); }
public static string[] MilestoneStats(this RegressionExecution execution) { return(null); }
public static string Name(this RegressionExecution execution) { return(execution.GetType().Name); }