Class FZagalaSpecGaugeParser#
Defined in File ZagalaSpecGaugeParser.h
Nested Relationships#
Nested Types#
Inheritance Relationships#
Base Type#
public IZagalaSpecBDDParser(Class IZagalaSpecBDDParser)
Class Documentation#
-
class FZagalaSpecGaugeParser : public IZagalaSpecBDDParser#
Parses Gauge (.spec and .cpt) files using markdown-based specification format.
Supported constructs:
Specifications (# Heading) containing scenarios (## Heading)
Steps (* Step text) with Given/When/Then phase detection
Tags (tags: tag1, tag2 or comma-separated on one line)
Data tables (markdown table format with | separators)
Multi-line step continuation (indented text blocks)
Comments (lines not matching other patterns)
Concepts (.cpt files) — inlined during import, parameters expanded
Concepts are parsed from .cpt files and expanded inline when referenced in .spec files. Concept parameters use
<placeholder>syntax and are replaced during expansion.Public Functions
-
virtual FZagalaSpecParseResult ParseFile(const FString &FilePath) const override#
Parse a BDD file from disk and return an import result.
- Parameters:
FilePath – Path of the file to parse.
- Returns:
The parsed features, errors, and warnings.
-
virtual FZagalaSpecParseResult ParseContent(const FString &Content, const FString &SourceName = TEXT("<inline>")) const override#
Parse BDD content from an in-memory string.
- Parameters:
Content – BDD text to parse.
SourceName – Identifies the source in warnings/errors (e.g. file path or
<inline>).
- Returns:
The parsed features, errors, and warnings.
-
TArray<FGaugeConcept> ParseConceptFile(const FString &FilePath) const#
Parse a .cpt concept file from disk.
- Parameters:
FilePath – Path of the concept file.
- Returns:
The parsed concepts; empty if the file cannot be read.
-
TArray<FGaugeConcept> ParseConceptContent(const FString &Content, const FString &SourceName = TEXT("<inline>")) const#
Parse concept definitions from an in-memory string.
- Parameters:
Content – Concept text to parse.
SourceName – Identifies the source in log messages.
- Returns:
The parsed concepts.
-
struct FGaugeConcept#
Parse a .cpt concept file and return concept definitions.
Public Members
-
FString Name#
Concept heading text.
-
TArray<FString> ParameterNames#
Extracted from
<param>placeholders in Name.
-
TArray<FZagalaSpecStepIR> Steps#
Concept body steps.
-
FString Name#