Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--gherkin-terminal-reporter doesn't color steps correctly #214

Open
akrejczinger opened this issue Apr 28, 2017 · 1 comment · May be fixed by #248 or #372
Open

--gherkin-terminal-reporter doesn't color steps correctly #214

akrejczinger opened this issue Apr 28, 2017 · 1 comment · May be fixed by #248 or #372

Comments

@akrejczinger
Copy link

The gherkin terminal reporter doesn't color the steps correctly.

Let's say I have the following feature with a broken step:

Scenario: Publishing the article
    Given I'm an author user
    And I have an article
    When I go to the article page  # This step is broken
    And I press the publish button
    Then I should not see the error message
    And the article should be published

I expect the output to look like this (the first word in each line is the colouring):

RED:   Scenario: Publishing the article
GREEN:     Given I'm an author user
GREEN:     And I have an article
RED:       When I go to the article page  # This step is broken
RED:       And I press the publish button
RED:       Then I should not see the error message
RED:       And the article should be published
RED:   FAILED

But instead I get an output with all lines in red.
Printing the steps after the failed one is optional.

@hristiy4n hristiy4n linked a pull request Jun 20, 2020 that will close this issue
@moorchegue
Copy link

This would be a great usability boost. Please merge either one of the fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants