AlignBDDStatements¶
Align BDD statements in the test case body.
Enabling the formatter
AlignBDDStatements is not included in default formatters.
You can enable it by using --select and --extend-select options.
Keyword calls prefixed with the BDD reserved keywords (Given, When, And, But and Then) are
indented so the keyword names following the prefixes are aligned in a single column:
The width of the column is calculated separately for every test case using the longest BDD prefix used in its body.
Nested blocks (such as IF or FOR) are aligned separately, using their own indentation as a base.
Statements that do not start with the BDD prefix, keyword calls with the assignment and keywords from the
*** Keywords *** section are not formatted.
BDD prefixes translated to other languages are recognized if the language is configured with the
--language option or with the language header.
Indentation¶
The statement with the longest BDD prefix keeps the normal indentation, and the remaining ones are padded with extra
spaces. The indentation can be configured with the global
--indent option: