Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions feature_integration_tests/python_test_cases/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
6 changes: 6 additions & 0 deletions feature_integration_tests/python_test_cases/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[pytest]
addopts = -v
testpaths = tests
markers =
PartiallyVerifies
FullyVerifies
Description
TestType
DerivationTechnique
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading