コード例 #1
0
 @Override
 public void testFinished(Description description) throws Exception {
   if (isItSingleScenario(description)) {
     ScenarioModel namedScenario = namedScenario(description);
     story.addScenario(namedScenario);
   }
 }
コード例 #2
0
 private void setAllFailedScenariosToStatusFailed(Result result) {
   for (Failure failure : result.getFailures())
     story
         .scenarioDescribedBy(failure.getDescription())
         .withStatus(ScenarioStatus.FAILED.withDetails(failure.getException()));
 }
コード例 #3
0
 private void setAllPassedAndPendingScenariosToProperStatus() {
   for (ScenarioModel scenario : story.scenarios()) {
     setStatusToPassedIfNotFailed(scenario);
     setStatusToPendingIfAnnotatedAsPending(scenario);
   }
 }