Class GherkinScenarioTrackerSource

java.lang.Object
com.arc_e_tect.gradle.trackerlens.tracker.GherkinScenarioTrackerSource
All Implemented Interfaces:
TrackerSource

public class GherkinScenarioTrackerSource extends Object implements TrackerSource
TrackerSource for gherkin-to-asciidoc's scenario progress-history NDJSON, one record per line with fields fingerprint, scenarioName, featureTitle, listedAt, definedAt, implementedAt, lastSeenAt, removedAt.

This module has no code dependency on gherkin-to-asciidoc; the schema below is hand-parsed directly from the known, fixed NDJSON shape that plugin writes, the same way that plugin's own store hand-parses it - see this class's Javadoc rather than any shared code for the field-by-field mapping.

Stages, in canonical order: listed, defined, implemented.

  • Constructor Details

    • GherkinScenarioTrackerSource

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

    • read

      public List<LifecycleRecord> read(File historyFile)
      Description copied from interface: TrackerSource
      Reads historyFile and returns the LifecycleRecords it contains.
      Specified by:
      read in interface TrackerSource
      Parameters:
      historyFile - the NDJSON history file; guaranteed by the caller to exist
      Returns:
      the parsed records; a line that fails to parse is skipped rather than failing the read