AlignTemplatedTestCases¶
Align suites with Test Template to columns.
For non-templated test cases use AlignTestCasesSection formatter. Test cases that are templated with
[Template] setting should also use AlignTestCasesSection.
Enabling the formatter
AlignTemplatedTestCases is not included in default formatters.
You can enable it by using --select and --extend-select options.
Examples:
Any argument in the same line as the test case name will be used as a column header for the alignment:
Align only the test case section with named headers¶
If you don't want to align test case section that does not contain header names then configure only_with_headers parameter:
Fixed the width of the column¶
It's possible to set a fixed minimal width of a column. To configure it use min_width parameter:
This configuration respects up_to_column parameter which only aligns columns up to configured up_to_column
column.