.withFailureTrace(Config.displayStackTrace());
// Setup parameters
ParameterConverters parameterConverters = new ParameterConverters()
.addConverters(new ExamplesTableConverter(
new ExamplesTableFactory(new LoadFromRelativeFile(
codeLocation))));
// factory to allow parameter conversion and loading from external
// resources (used by StoryParser too)
ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(
new LocalizedKeywords(),
new LoadFromRelativeFile(codeLocation), parameterConverters);
// add custom coverters
parameterConverters.addConverters(new ExamplesTableConverter(
examplesTableFactory));
viewResources.put("decorateNonHtml", "true");
useStoryControls(
new StoryControls().doDryRun(false)
.doSkipScenariosAfterFailure(false)
.doResetStateBeforeStory(true)
.useStoryMetaPrefix("story_")
.useScenarioMetaPrefix("scenario_"))
.useStoryLoader(new LoadFromRelativeFile(codeLocation))
.useStoryReporterBuilder(srb)
.useStoryPathResolver(storyPathResolver)
.useStepMonitor(new SilentStepMonitor())
.useStoryParser(new RegexStoryParser(examplesTableFactory))
.useParameterConverters(parameterConverters);