public StepthroughExecutor(IExecutionContext execution, SpecExecutionRequest request, IUserInterfaceObserver observer) { _context = new SpecContext(request.Specification, new Timings(), request.Observer, new StopConditions(), execution); _execution = execution; _request = request; _observer = observer; var gatherer = new ExecutionStepGatherer(_context); _request.Plan.AcceptVisitor(gatherer); _steps = gatherer.Lines; try { _execution.BeforeExecution(_context); } catch (Exception e) { _context.LogException(_request.Id, e, "BeforeExecution"); } _observer.SendProgress(new SpecProgress(_request.Id, _context.Counts, 0, _steps.Count)); sendNextStepMessage(); }
public StepthroughExecutor(IExecutionContext execution, SpecExecutionRequest request, IUserInterfaceObserver observer) { _context = new SpecContext(request.Specification, new Timings(), request.Observer, new StopConditions(), execution); _execution = execution; _request = request; _observer = observer; var gatherer = new ExecutionStepGatherer(_context); _request.Plan.AcceptVisitor(gatherer); _steps = gatherer.Lines; try { _execution.BeforeExecution(_context); } catch (Exception e) { _context.LogException(_request.Id, e, "BeforeExecution"); } _observer.SendProgress(new SpecProgress(_request.Id, _context.Counts, 0, _steps.Count)); sendNextStepMessage(); }
public InstrumentedExecutor(SpecContext context, SpecificationPlan plan, IUserInterfaceObserver observer) : base(context) { _observer = observer; _total = plan.Count(); _step = 0; _plan = plan; }
public InstrumentedExecutor(SpecContext context, SpecificationPlan plan, IUserInterfaceObserver observer) : base(context) { _observer = observer; _total = plan.Count(); _step = 0; _plan = plan; }
// TODO -- if an error bubbles up, the SpecificationEngine should mark its runner // as Invalid public static StepthroughExecutor Start(ISystem system, Specification specification, IResultObserver observer, IUserInterfaceObserver uiObserver, FixtureLibrary library) { var request = new SpecExecutionRequest(specification, observer); request.CreatePlan(library); // Got to watch because this can error out var execution = system.CreateContext(); return new StepthroughExecutor(execution, request, uiObserver); }
public EngineController(ISpecificationEngine engine, IUserInterfaceObserver observer, ISpecRunner runner) { _engine = engine; _observer = observer; _runner = runner; }
public StepthroughExecution(SpecExecutionRequest request, StopConditions stopConditions, IUserInterfaceObserver observer, IExecutionObserver executionObserver) : base(request, stopConditions, new InstrumentedLogger(observer)) { _observer = observer; _executionObserver = executionObserver; }
public InstrumentedLogger(IUserInterfaceObserver observer) { _observer = observer; }
public UserInterfaceExecutionMode(IUserInterfaceObserver observer) { _observer = observer; }
public StepthroughExecutor(SpecContext context, SpecificationPlan plan, IUserInterfaceObserver observer) { _observer = observer; _context = context; plan.AcceptVisitor(this); }
public StepthroughExecution(SpecExecutionRequest request, StopConditions stopConditions, IUserInterfaceObserver observer, IExecutionObserver executionObserver) : base(request, stopConditions, new InstrumentedLogger(observer)) { _observer = observer; _executionObserver = executionObserver; }
public InstrumentedLogger(IUserInterfaceObserver observer) { _observer = observer; }
// TODO -- if an error bubbles up, the SpecificationEngine should mark its runner // as Invalid public static StepthroughExecutor Start(ISystem system, Specification specification, IResultObserver observer, IUserInterfaceObserver uiObserver, FixtureLibrary library) { var request = new SpecExecutionRequest(specification, observer); request.CreatePlan(library); // Got to watch because this can error out var execution = system.CreateContext(); return(new StepthroughExecutor(execution, request, uiObserver)); }
public UserInterfaceExecutionMode(IUserInterfaceObserver observer) { Observer = observer; }