Package com.arc_e_tect.gradle.gherkin.progress
package com.arc_e_tect.gradle.gherkin.progress
-
ClassDescriptionReads and writes
ScenarioProgressRecords as newline-delimited JSON (NDJSON), one record per line, sorted byScenarioProgressRecord.fingerprint()so that git diffs of the persisted file are minimal and stable regardless of scenario reordering or scenarios moving between feature files.Produces the nextScenarioProgressRecordmap to persist, from the previously persisted map and the current run's scenarios.Configuration forProgressReportWriter.Writes an AsciiDoc progress report that breaks scenarios down byScenarioStatusand summarises the breakdown as a table of counts and percentages.Renders a progress report from a user-supplied Mustache template, so that the generated AsciiDoc file references the snippets written bySnippetWriterviainclude::directives instead of embedding their content verbatim.Shared explanatory text used by bothProgressReportWriterandReportTemplateRenderer.Classifies aScenarioInfoasScenarioStatus.LISTED,ScenarioStatus.DEFINED, orScenarioStatus.IMPLEMENTEDbased on whether it has steps, and whether every step has matching glue code.Computes a stable identifier for a scenario from its name alone, deliberately ignoring whichFeaturefile it currently lives in - soProgressHistoryUpdaterkeeps recognising the same scenario even after it has been moved between feature files.Persisted, per-scenario history of when a scenario first reached eachScenarioStatusstage, keyed byScenarioFingerprint.fingerprint(String)rather than by feature file location - so the history survives a scenario being moved between feature files.Implementation progress of a single scenario, as tracked whentrackProgressis enabled.The scenarios classified under oneScenarioStatus, along with the display text and summary figures used to render that status's heading, blurb, and summary table row.