Class FZagalaSpecGaugeExporter#
Defined in File ZagalaSpecGaugeExporter.h
Inheritance Relationships#
Base Type#
public IZagalaSpecBDDExporter(Class IZagalaSpecBDDExporter)
Class Documentation#
-
class FZagalaSpecGaugeExporter : public IZagalaSpecBDDExporter#
Exports a feature to Gauge (.spec) markdown text.
Each expectation of a scenario becomes a step line with * prefix. ZagalaSpec metadata (tags, descriptions) is preserved as HTML comments for round-tripping. When all scenarios share identical context extension inputs, they are emitted as context steps before the first ## Scenario heading (the Gauge Background equivalent).
Generated format:
# Specification heading
tags: tag1, tag2
* Context step (Background equivalent, when present)
## Scenario heading
* Step text
HTML comments: ,
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.