use of org.jbehave.core.reporters.ViewGenerator in project jbehave-core by jbehave.
the class Embedder method generateReportsView.
public void generateReportsView(File outputDirectory, List<String> formats, Properties viewResources) {
if (embedderControls().skip()) {
embedderMonitor.reportsViewNotGenerated();
return;
}
ViewGenerator viewGenerator = configuration().viewGenerator();
try {
embedderMonitor.generatingReportsView(outputDirectory, formats, viewResources);
viewGenerator.generateReportsView(outputDirectory, formats, viewResources);
} catch (RuntimeException e) {
embedderMonitor.reportsViewGenerationFailed(outputDirectory, formats, viewResources, e);
throw new ViewGenerationFailed(outputDirectory, formats, viewResources, e);
}
ReportsCount count = viewGenerator.getReportsCount();
embedderMonitor.reportsViewGenerated(count);
handleFailures(count);
}
Aggregations