Skip to content

feat: add test-level tags support to all reporters#477

Merged
gibiw merged 6 commits intomainfrom
feat/reporters-tags-support
Apr 8, 2026
Merged

feat: add test-level tags support to all reporters#477
gibiw merged 6 commits intomainfrom
feat/reporters-tags-support

Conversation

@gibiw
Copy link
Copy Markdown
Contributor

@gibiw gibiw commented Apr 8, 2026

Summary

Add test-level tags support to all 4 Python reporters:

  • pytest 8.1.0: @qase.tags("smoke", "regression") decorator with class+method merge via iter_markers
  • behave 3.1.0: @qase.tags:smoke,regression Gherkin tag with feature+scenario accumulation
  • robotframework 5.1.0: qase.tags:smoke,regression test tag with accumulation
  • tavern 3.1.0: QaseTags.smoke,regression prefix in YAML test name

Changes per package

Package Decorator/Annotation Extraction Tests Docs
qase-pytest @qase.tags(*tags) _set_tags() with iter_markers 3 unit + 4 integration usage.md
qase-behave @qase.tags:tag1,tag2 __parse_tags() with accumulation 5 unit + 2 integration usage.md
qase-robotframework qase.tags:tag1,tag2 TagParser.__extract_tags() 7 unit + 2 integration usage.md
qase-tavern QaseTags.tag1,tag2 extract_qase_ids() extended 5 unit + 2 integration usage.md

Depends on

Test plan

  • Unit tests pass for all 4 reporters (20 new tests total)
  • Integration test files + expected YAMLs added for all reporters
  • Documentation updated with "Adding Tags" section in all 4 docs/usage.md
  • Version bumps and changelogs for all packages

@gibiw gibiw force-pushed the feat/reporters-tags-support branch 4 times, most recently from 690b204 to 32bab4c Compare April 8, 2026 11:30
gibiw added 5 commits April 8, 2026 16:28
Add @qase.tags() decorator (pytest), @qase.tags: tag (behave),
qase.tags: tag (Robot Framework), QaseTags. prefix (Tavern).

- Tags are accumulated from class+method (pytest) and
  feature+scenario (BDD) levels.
- Tags merge with fields["tags"] (fields-first, deduplicated).
- Update commons dependency to ~=5.1.0.
- Bump versions: pytest 8.1.0, behave 3.1.0, robot 5.1.0, tavern 3.1.0.
- Add integration tests and documentation for all reporters.
The reporters-validator doesn't validate stats independently — keep
original stats from main and only add new tags results to expected.
Robot Framework listener calls start_run() per suite, so only the
last suite's results appear in the report. Merge tags tests into
steps.robot to keep all results in one suite.
@gibiw gibiw force-pushed the feat/reporters-tags-support branch from 3dd3bf7 to 65295ef Compare April 8, 2026 13:28
@gibiw gibiw merged commit 1fba8b7 into main Apr 8, 2026
107 of 111 checks passed
@gibiw gibiw deleted the feat/reporters-tags-support branch April 8, 2026 14:02
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.

1 participant