Class ProgressReportWriter

java.lang.Object
com.arc_e_tect.gradle.gherkin.progress.ProgressReportWriter

public class ProgressReportWriter extends Object
Writes an AsciiDoc progress report that breaks scenarios down by ScenarioStatus and summarises the breakdown as a table of counts and percentages.

Every call also writes the listed.adoc/defined.adoc/implemented.adoc snippet files (see SnippetWriter), regardless of whether a template is configured. When ProgressReportOptions.template() is set, the report itself is rendered from that Mustache template via ReportTemplateRenderer - referencing the snippets via include:: directives - instead of embedding scenario titles verbatim.

  • Constructor Details

    • ProgressReportWriter

      public ProgressReportWriter()
      Creates a new ProgressReportWriter.
  • Method Details

    • write

      public void write(File outputFile, List<ScenarioInfo> scenarios, List<io.cucumber.cucumberexpressions.Expression> glueCode, ProgressReportOptions options)
      Classifies every scenario, writes the snippet files, and writes the progress report to outputFile.
      Parameters:
      outputFile - the AsciiDoc file to write
      scenarios - the scenarios to report on
      glueCode - step definition patterns found in the configured glue code directories
      options - grouping, snippet, and template configuration