File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
feature_integration_tests/python_test_cases Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff 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 ]))
Original file line number Diff line number Diff line change 11[pytest]
22addopts = -v
33testpaths = tests
4+ markers =
5+ PartiallyVerifies
6+ FullyVerifies
7+ Description
8+ TestType
9+ DerivationTechnique
Original file line number Diff line number Diff line change 77from 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" )
1016class TestOrchWithPersistency (FitScenario ):
1117 """
1218 Tests orchestration with persistency scenario.
You can’t perform that action at this time.
0 commit comments