Exemplo n.º 1
0
 public static void Run(
     RegressionSession session,
     RegressionExecution execution,
     bool usePerfContext = false)
 {
     using (PerformanceScope(usePerfContext)) {
         RunInternal(session, execution);
     }
 }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 private void PerformanceRun(RegressionExecution execution)
 {
     using (new PerformanceContext()) {
         RegressionRunner.Run(session, execution);
     }
 }
Exemplo n.º 4
0
 public static void RunPerformanceSensitive(
     RegressionSession session,
     RegressionExecution execution)
 {
     Run(session, execution, true);
 }
Exemplo n.º 5
0
 public static string[] MilestoneStats(this RegressionExecution execution)
 {
     return(null);
 }
Exemplo n.º 6
0
 public static string Name(this RegressionExecution execution)
 {
     return(execution.GetType().Name);
 }