Class FZagalaSpecGherkinExporter#
Defined in File ZagalaSpecGherkinExporter.h
Inheritance Relationships#
Base Type#
public IZagalaSpecBDDExporter(Class IZagalaSpecBDDExporter)
Class Documentation#
-
class FZagalaSpecGherkinExporter : public IZagalaSpecBDDExporter#
Exports a feature to Gherkin (.feature) text.
Pass Format = EZagalaSpecExportFormat::SpecFlow to prepend a SpecFlow compatibility comment; the grammar is otherwise identical.
Each expectation of a scenario becomes a step line. The step keyword is inferred via FZagalaSpecStepPhaseResolver from the step text prefix. When all scenarios share identical context extension inputs, a Background: block is emitted at the feature level.
Note
Export() and ExportToFile() are provided by IZagalaSpecBDDExporter.
Public Functions
-
virtual FString ExportFromIR(const FZagalaSpecFeatureIR &ImportedFeature, EZagalaSpecExportFormat Format) const override#
Export an FZagalaSpecFeatureIR IR struct to a format-specific text string.
All concrete exporters implement this as the primary conversion path. The base Export() default routes through this method via the .zagalaspec intermediate.
- Parameters:
ImportedFeature – Feature IR to export.
Format – Target export format.
- Returns:
The exported text.
-
virtual FString GenerateTextFeatureFromIR(const FZagalaSpecFeatureIR &ImportedFeature, EZagalaSpecExportFormat &Format) const override#
Generate the complete format-specific text of a feature IR.
- Parameters:
ImportedFeature – Feature IR to convert.
Format – Target export format.
- Returns:
The generated feature text.
-
virtual FString GenerateTextScenariosFromIR(const FZagalaSpecFeatureIR &ImportedFeature) const override#
Generate the format-specific text of every scenario in a feature IR.
- Parameters:
ImportedFeature – Feature IR whose scenarios are converted.
- Returns:
The concatenated scenario text.
-
virtual FString GenerateTextStepFromIR(const FZagalaSpecStepIR &Step) const override#
Generate the format-specific text of a single step IR.
- Parameters:
Step – Step IR to convert.
- Returns:
The generated step text.
-
virtual FString ExportFromIR(const FZagalaSpecFeatureIR &ImportedFeature, EZagalaSpecExportFormat Format) const override#