Class FZagalaSpecGherkinParser#
Defined in File ZagalaSpecGherkinParser.h
Inheritance Relationships#
Base Type#
public IZagalaSpecBDDParser(Class IZagalaSpecBDDParser)
Class Documentation#
-
class FZagalaSpecGherkinParser : public IZagalaSpecBDDParser#
Parses Gherkin (.feature) files as used by Cucumber and SpecFlow.
Both formats share the same grammar; SpecFlow-specific attributes live in C# step-binding code and are invisible at the .feature level.
Supported constructs:
Feature / Background / Scenario / Scenario Outline (with Examples)
Given / When / Then / And / But / * step keywords
@tagson Feature, Scenario, and Examples blocksDocstrings (triple-quote delimiters)
Data tables (pipe-separated)
Rule keyword (flattened — scenarios collected under the enclosing Feature)
# language: directive (non-English triggers a parse warning)
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.