Skip to content

Commit a4aa549

Browse files
committed
don't include marker args when displaying markers as tags in the robot log as they are often too noisy
1 parent f4d78a4 commit a4aa549

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,7 @@ def parse(self, source: Path, defaults: TestDefaults) -> running.TestSuite:
163163
test_case = running.TestCase(
164164
name=child.name,
165165
doc=documentation,
166-
tags=[
167-
":".join([
168-
marker.name,
169-
*(str(arg) for arg in cast(tuple[object, ...], marker.args)),
170-
])
171-
for marker in child.iter_markers()
172-
],
166+
tags=[marker.name for marker in child.iter_markers()],
173167
parent=parent_suite,
174168
)
175169
child.stash[running_test_case_key] = test_case

tests/test_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def test_parameterized_tags(pr: PytestRobotTester):
440440
pr.run_and_assert_result(passed=1)
441441
pr.assert_log_file_exists()
442442
xml = output_xml()
443-
assert xml.xpath(".//test[@name='test_tags']/tag[.='foo:bar']")
443+
assert xml.xpath(".//test[@name='test_tags']/tag[.='foo']")
444444

445445

446446
def test_keyword_names(pr: PytestRobotTester):

0 commit comments

Comments
 (0)