Esempio n. 1
0
 public static void Run(
     RegressionSession session,
     RegressionExecution execution,
     bool usePerfContext = false)
 {
     using (PerformanceScope(usePerfContext)) {
         RunInternal(session, execution);
     }
 }
Esempio n. 2
0
 public static void Run<T>(
     RegressionSession session,
     ICollection<T> executions,
     bool usePerfContext = false)
     where T : RegressionExecution
 {
     foreach (var execution in RegressionFilter.FilterBySystemProperty(executions)) {
         using (PerformanceScope(usePerfContext)) {
             RunInternal(session, execution);
         }
     }
 }
Esempio n. 3
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));
        }
Esempio n. 4
0
 public static void RunPerformanceSensitive(
     RegressionSession session,
     RegressionExecution execution)
 {
     Run(session, execution, true);
 }