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) RenderstemplatetooutputFilewith no re-interpreted outlines to report - seerender(File, File, String, List, Map, List), which this delegates to with an empty list, rendering theoutlineExpansioncontext variable as the empty string.voidrender(File outputFile, File template, String systemUnderTestVersion, List<StatusSummary> summaries, Map<ScenarioStatus, StatusSnippets> snippets, List<ReinterpretedOutlines.Outline> reinterpretedOutlines) 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) RenderstemplatetooutputFilewith no re-interpreted outlines to report - seerender(File, File, String, List, Map, List), which this delegates to with an empty list, rendering theoutlineExpansioncontext variable as the empty string.- 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
-
render
public void render(File outputFile, File template, String systemUnderTestVersion, List<StatusSummary> summaries, Map<ScenarioStatus, StatusSnippets> snippets, List<ReinterpretedOutlines.Outline> reinterpretedOutlines) 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 statusreinterpretedOutlines- the outlines this run has started reporting one scenario perExamplesrow, rendered into theoutlineExpansioncontext variable; empty on every run that re-interprets none, which renders that variable as the empty string
-