Skip to content

Show scenario tags in gherkin terminal reporter#807

Open
baobaodawang-creater wants to merge 2 commits into
pytest-dev:masterfrom
baobaodawang-creater:print-tags-in-gherkin-terminal-reporter
Open

Show scenario tags in gherkin terminal reporter#807
baobaodawang-creater wants to merge 2 commits into
pytest-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

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.13%. Comparing base (9454b38) to head (4f0312a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #807      +/-   ##
==========================================
+ Coverage   96.10%   96.13%   +0.02%     
==========================================
  Files          55       55              
  Lines        2390     2405      +15     
  Branches      136      138       +2     
==========================================
+ Hits         2297     2312      +15     
  Misses         56       56              
  Partials       37       37              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

2 participants