Пример #1
0
 public static List<ExecutionEvent> execute(
     TestEngine testEngine, TestPlanSpecification testPlanSpecification) {
   TestDescriptor engineTestDescriptor = testEngine.discoverTests(testPlanSpecification);
   ExecutionEventRecorder listener = new ExecutionEventRecorder();
   testEngine.execute(new ExecutionRequest(engineTestDescriptor, listener));
   return listener.getExecutionEvents();
 }
 public static List<ExecutionEvent> execute(
     TestEngine testEngine, EngineDiscoveryRequest discoveryRequest) {
   TestDescriptor engineTestDescriptor = testEngine.discover(discoveryRequest);
   ExecutionEventRecorder listener = new ExecutionEventRecorder();
   testEngine.execute(new ExecutionRequest(engineTestDescriptor, listener));
   return listener.getExecutionEvents();
 }