Beispiel #1
0
 private void execute(RootTestDescriptor root) {
   TestPlan testPlan = TestPlan.from(root);
   TestExecutionListener testExecutionListener =
       listenerRegistry.getCompositeTestExecutionListener();
   testExecutionListener.testPlanExecutionStarted(testPlan);
   ExecutionListenerAdapter engineExecutionListener =
       new ExecutionListenerAdapter(testPlan, testExecutionListener);
   for (TestEngine testEngine : root.getTestEngines()) {
     TestDescriptor testDescriptor = root.getTestDescriptorFor(testEngine);
     testEngine.execute(new ExecutionRequest(testDescriptor, engineExecutionListener));
   }
   testExecutionListener.testPlanExecutionFinished(testPlan);
 }