-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Copy link
Labels
Description
Suppose we have the following test:
class TestFoo:
class TestBar:
def test_baz(self):
pass
When we run the test with Allure Pytest, the following result file is created:
{
"name": "test_baz",
"status": "passed",
"start": 1752068326285,
"stop": 1752068326285,
"uuid": "782b1e04-dfc2-44bc-bfc0-774373b3c98f",
"historyId": "248833ed6b12c59f5bf2306c42651294",
"testCaseId": "248833ed6b12c59f5bf2306c42651294",
"fullName": "tests.test_foo.TestBar#test_baz",
"labels": [
{"name": "parentSuite", "value": "tests"},
{"name": "suite", "value": "test_foo"},
{"name": "subSuite", "value": "TestFoo"},
{"name": "host", "value": "*.*.*.*"},
{"name": "thread", "value": "*"},
{"name": "framework", "value": "pytest"},
{"name": "language", "value": "cpython3"},
{"name": "package", "value": "tests.test_foo"}
]
}
The result has the following issues:
TestFoo
is missing infullName
.TestFoo
is not taken into account bytestCaseId
andhistoryId
.TestBar
is missing in thesubSuite
label.