feat: add test-level tags support to all reporters#477
Merged
Conversation
690b204 to
32bab4c
Compare
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.
3dd3bf7 to
65295ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add test-level tags support to all 4 Python reporters:
@qase.tags("smoke", "regression")decorator with class+method merge viaiter_markers@qase.tags:smoke,regressionGherkin tag with feature+scenario accumulationqase.tags:smoke,regressiontest tag with accumulationQaseTags.smoke,regressionprefix in YAML test nameChanges per package
@qase.tags(*tags)_set_tags()withiter_markers@qase.tags:tag1,tag2__parse_tags()with accumulationqase.tags:tag1,tag2TagParser.__extract_tags()QaseTags.tag1,tag2extract_qase_ids()extendedDepends on
qase-python-commons5.1.0 must be published first)qase-python-commons~=5.1.0Test plan
docs/usage.md