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: add step-specific markup #248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

veliakiner
Copy link

@veliakiner veliakiner commented Jul 10, 2018

Fixes #214


This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 93.327% when pulling dc82652 on veliakiner:master into fb28403 on pytest-dev:master.

@@ -100,12 +100,13 @@ def pytest_runtest_logreport(self, report):
self._tw.write(report.scenario['name'], **scenario_markup)
self._tw.write('\n')
for step in report.scenario['steps']:
step_markup = {'red': True} if step["failed"] else {'green': True}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not working for skipped tests because of else statement

@hristiy4n
Copy link

hristiy4n commented Jun 17, 2020

Any updates on this one? Are individual steps possible to be skipped?

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

Successfully merging this pull request may close these issues.

--gherkin-terminal-reporter doesn't color steps correctly
4 participants