@Override public void evaluate() { JUnitScenarioReporter junitReporter = new JUnitScenarioReporter( notifier, numberOfTestCases, rootDescription, configuration.keywords()); // tell the reporter how to handle pending steps junitReporter.usePendingStepStrategy(configuration .pendingStepStrategy()); addToStoryReporterFormats(junitReporter); try { configurableEmbedder.run(); } catch (Throwable e) { throw new RuntimeException(e); } } };
@Override public void evaluate() { JUnitScenarioReporter junitReporter = new JUnitScenarioReporter( notifier, numberOfTestCases, rootDescription, configuration.keywords()); // tell the reporter how to handle pending steps junitReporter.usePendingStepStrategy(configuration .pendingStepStrategy()); addToStoryReporterFormats(junitReporter); try { configuredEmbedder.runStoriesAsPaths(storyPaths); } catch (Throwable e) { throw new RuntimeException(e); } finally { configuredEmbedder.generateCrossReference(); } } };
@Override public void run(RunNotifier notifier) { getConfiguredEmbedder().embedderControls().doIgnoreFailureInView(getIgnoreFailuresInView()); getConfiguredEmbedder().embedderControls().doIgnoreFailureInStories(getIgnoreFailuresInStories()); getConfiguredEmbedder().embedderControls().useStoryTimeoutInSecs(getStoryTimeoutInSecs()); if (metaFiltersAreDefined()) { getConfiguredEmbedder().useMetaFilters(getMetaFilters()); } JUnitScenarioReporter junitReporter = new JUnitScenarioReporter(notifier, testCount(), getDescription(), new Keywords()); // tell the reporter how to handle pending steps junitReporter.usePendingStepStrategy(getConfiguration().pendingStepStrategy()); addToStoryReporterFormats(junitReporter); try { getConfiguredEmbedder().runStoriesAsPaths(getStoryPaths()); } catch (Throwable e) { throw new RuntimeException(e); } finally { if (usingUniqueBrowser()) { ThucydidesWebDriverSupport.closeAllDrivers(); } getConfiguredEmbedder().generateCrossReference(); } shutdownTestSuite(); }
getConfiguredEmbedder().configuration().keywords()); junitReporter.usePendingStepStrategy(getConfiguration().pendingStepStrategy());