.withRelativeDirectory(".." + File.separator + Config.getLatestReportsDir())
.withFormats(Format.XML, Format.CONSOLE, Format.HTML, Format.IDE_CONSOLE, Format.TXT)
.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)