Class ReportTemplateRenderer
java.lang.Object
com.arc_e_tect.gradle.gherkin.progress.ReportTemplateRenderer
Renders a progress report from a user-supplied Mustache template, so that the generated
AsciiDoc file references the snippets written by
SnippetWriter
via include:: directives instead of embedding their content verbatim.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(File outputFile, File template, String systemUnderTestVersion, List<StatusSummary> summaries, Map<ScenarioStatus, StatusSnippets> snippets) RenderstemplatetooutputFile, usingsummariesandsnippetsto build the Mustache context.
-
Constructor Details
-
ReportTemplateRenderer
public ReportTemplateRenderer()Creates a newReportTemplateRenderer.
-
-
Method Details
-
render
public void render(File outputFile, File template, String systemUnderTestVersion, List<StatusSummary> summaries, Map<ScenarioStatus, StatusSnippets> snippets) RenderstemplatetooutputFile, usingsummariesandsnippetsto build the Mustache context. Snippet paths in the context are relative tooutputFile's directory, so plaininclude::<path>[]directives resolve correctly.- Parameters:
outputFile- the AsciiDoc file to writetemplate- the Mustache template file to rendersystemUnderTestVersion- version of the system under test that the reported scenarios exercisesummaries- the classified scenarios and summary figures for each status, in display ordersnippets- the snippet file(s) written for each status
-