pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

feature request: Use different colour for step arguments in terminal output

Open jamiekt opened this issue 1 year ago • 0 comments

I have a feature defined like so:

Feature: Eating bananas
    Scenario Outline: Outlined given, when, then
        Given there are <start> bananas
        When I eat <eat> bananas
        Then I should have <left> bananas

        Examples:
        | start | eat | left |
        |  12   |  5  |  7   |
        |  12   |  3  |  9   |

The terminal output (pytest --gherkin-terminal-reporter) appears like so:

Feature: Eating bananas
    Scenario: Outlined given, when, then
        Given there are 12 bananas
        When I eat 5 bananas
        Then I should have 7 bananas
    PASSED

Feature: Eating bananas
    Scenario: Outlined given, when, then
        Given there are 12 bananas
        When I eat 3 bananas
        Then I should have 9 bananas
    PASSED
image

It would be rather nice if the step argument values (12 ,5, 7 then 12, 3, 9 in the examples above) appeared in a different colour.

I don't know how one should raise feature requests for this project so I hope this suffices.

jamiekt avatar Mar 15 '23 16:03 jamiekt