Skip to content

Commit 292a238

Browse files
authored
add test attributes (#36)
1 parent 22a9af1 commit 292a238

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

feature_integration_tests/python_test_cases/conftest.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,20 @@ def pytest_sessionstart(session):
6464

6565
except Exception as e:
6666
pytest.exit(str(e), returncode=1)
67+
68+
69+
def pytest_collection_modifyitems(items: list[pytest.Function]):
70+
markers_to_process = (
71+
"PartiallyVerifies",
72+
"FullyVerifies",
73+
"Description",
74+
"TestType",
75+
"DerivationTechnique",
76+
)
77+
for item in items:
78+
# Add custom markers info to XML report
79+
for marker in item.iter_markers():
80+
if marker.name not in markers_to_process:
81+
continue
82+
83+
item.user_properties.append((marker.name, marker.args[0]))
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[pytest]
22
addopts = -v
33
testpaths = tests
4+
markers =
5+
PartiallyVerifies
6+
FullyVerifies
7+
Description
8+
TestType
9+
DerivationTechnique

feature_integration_tests/python_test_cases/tests/basic/test_orchestartion_with_persistency.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
from testing_utils import LogContainer
88

99

10+
@pytest.mark.PartiallyVerifies(["feat_req__persistency__persistency"])
11+
@pytest.mark.Description(
12+
"Verifies Persistency stores data persistently across multiple orchestration runs."
13+
)
14+
@pytest.mark.TestType("requirements-based")
15+
@pytest.mark.DerivationTechnique("requirements-based")
1016
class TestOrchWithPersistency(FitScenario):
1117
"""
1218
Tests orchestration with persistency scenario.

0 commit comments

Comments
 (0)