From 145e2233ab37fe02ee2176d71dfed7732bdde46c Mon Sep 17 00:00:00 2001 From: Piotr Korkus Date: Thu, 13 Nov 2025 16:01:22 +0100 Subject: [PATCH] add test attributes --- .../python_test_cases/conftest.py | 17 +++++++++++++++++ .../python_test_cases/pytest.ini | 6 ++++++ .../test_orchestartion_with_persistency.py | 6 ++++++ 3 files changed, 29 insertions(+) diff --git a/feature_integration_tests/python_test_cases/conftest.py b/feature_integration_tests/python_test_cases/conftest.py index 001b14a2b3..b07758d82f 100644 --- a/feature_integration_tests/python_test_cases/conftest.py +++ b/feature_integration_tests/python_test_cases/conftest.py @@ -64,3 +64,20 @@ def pytest_sessionstart(session): except Exception as e: pytest.exit(str(e), returncode=1) + + +def pytest_collection_modifyitems(items: list[pytest.Function]): + markers_to_process = ( + "PartiallyVerifies", + "FullyVerifies", + "Description", + "TestType", + "DerivationTechnique", + ) + for item in items: + # Add custom markers info to XML report + for marker in item.iter_markers(): + if marker.name not in markers_to_process: + continue + + item.user_properties.append((marker.name, marker.args[0])) diff --git a/feature_integration_tests/python_test_cases/pytest.ini b/feature_integration_tests/python_test_cases/pytest.ini index d4b25fd2f8..79d506db70 100644 --- a/feature_integration_tests/python_test_cases/pytest.ini +++ b/feature_integration_tests/python_test_cases/pytest.ini @@ -1,3 +1,9 @@ [pytest] addopts = -v testpaths = tests +markers = + PartiallyVerifies + FullyVerifies + Description + TestType + DerivationTechnique diff --git a/feature_integration_tests/python_test_cases/tests/basic/test_orchestartion_with_persistency.py b/feature_integration_tests/python_test_cases/tests/basic/test_orchestartion_with_persistency.py index 201851da83..eee414b27e 100644 --- a/feature_integration_tests/python_test_cases/tests/basic/test_orchestartion_with_persistency.py +++ b/feature_integration_tests/python_test_cases/tests/basic/test_orchestartion_with_persistency.py @@ -7,6 +7,12 @@ from testing_utils import LogContainer +@pytest.mark.PartiallyVerifies(["feat_req__persistency__persistency"]) +@pytest.mark.Description( + "Verifies Persistency stores data persistently across multiple orchestration runs." +) +@pytest.mark.TestType("requirements-based") +@pytest.mark.DerivationTechnique("requirements-based") class TestOrchWithPersistency(FitScenario): """ Tests orchestration with persistency scenario.