Skip to content

Show scenario tags in gherkin terminal reporter#807

Open
baobaodawang-creater wants to merge 1 commit intopytest-dev:masterfrom
baobaodawang-creater:print-tags-in-gherkin-terminal-reporter
Open

Show scenario tags in gherkin terminal reporter#807
baobaodawang-creater wants to merge 1 commit intopytest-dev:masterfrom
baobaodawang-creater:print-tags-in-gherkin-terminal-reporter

Conversation

@baobaodawang-creater
Copy link
Copy Markdown

Adds scenario tag output to the gherkin terminal reporter when tags are present.

This prints tags in the requested format, for example:

(tags: R1.1, R1.2)

The change only affects tagged scenarios. Untagged scenarios keep the existing output.

Tests added:

  • tagged scenario output for -v
  • tagged scenario output for -vv
  • guard that untagged scenario output does not include a tags line

Validation:

  • python -m pytest tests/feature/test_gherkin_terminal_reporter.py -q --maxfail=1
  • python -m pytest tests/feature -q --maxfail=1

Closes #476

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.

print tags in gherkin-terminal-reporter

1 participant