Struct FZagalaSpecScenarioIR#

Struct Documentation#

struct FZagalaSpecScenarioIR#

A single BDD scenario parsed from a source file or exported from ZagalaSpec.

For Scenario Outlines, the parser now emits ONE scenario and stores the Examples table here so the builder can attach a data-table context extension instead of duplicating expectations per row. Step text contains the original <placeholder> tokens verbatim.

Public Members

FString Title#

Scenario title.

FString Description#

Free-form scenario description.

TArray<FString> Tags#

Tags applied to the scenario.

bool bDisabled = false#

When true the scenario was tagged with (disabled) — builder sets bIncludeInTests=false.

TArray<FZagalaSpecStepIR> ExpectationSteps#

Expectation steps in this scenario (Shared Context Extension steps are NOT included here; they are in FZagalaSpecFeatureIR::SharedContextExtensionSteps).

TArray<FZagalaSpecStepIR> ContextExtensionSteps#

Per-scenario context extension steps (e.g.

from a “Context Extensions:” block in .zagalaspec). The builder creates a UZagalaSpecTextStep per entry and appends them to the scenario’s ContextExtensions array. Parsers other than FZagalaSpecZagalaSpecParser always leave this empty (additive, no regression).

TOptional<FZagalaSpecDataTableIR> ExamplesTable#

Examples table for Scenario Outlines (or the equivalent in other formats).

When set, the builder creates a UZagalaSpecTextStep with the examples iterator pattern and attaches it to the scenario’s ContextExtensions array.