From 80df6f41e83a4dd47efaa022c83b03f5ced091ec Mon Sep 17 00:00:00 2001 From: Piotr Korkus Date: Mon, 17 Nov 2025 14:47:43 +0100 Subject: [PATCH] use attribute plugin Test attributes are added with decorator. Added settings for test discovery. --- .vscode/settings.json | 7 +++++- .../test_orchestartion_with_persistency.py | 22 ++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a31c99d85..c64d04584 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,10 @@ { "rust-analyzer.linkedProjects": [ "rust-project.json" - ] + ], + "python.testing.pytestArgs": [ + "feature_integration_tests" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true } 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 eee414b27..182f9e3ee 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 @@ -3,16 +3,28 @@ from typing import Any, Generator import pytest + +try: + from attribute_plugin import add_test_properties # type: ignore[import-untyped] +except ImportError: + # Define no-op decorator if attribute_plugin is not available (outside bazel) + # Keeps IDE debugging functionality + def add_test_properties(*args, **kwargs): + def decorator(func): + return func # No-op decorator + + return decorator + + from fit_scenario import FitScenario, temp_dir_common from testing_utils import LogContainer -@pytest.mark.PartiallyVerifies(["feat_req__persistency__persistency"]) -@pytest.mark.Description( - "Verifies Persistency stores data persistently across multiple orchestration runs." +@add_test_properties( + partially_verifies=["feat_req__persistency__persistency"], + test_type="requirements-based", + derivation_technique="requirements-analysis", ) -@pytest.mark.TestType("requirements-based") -@pytest.mark.DerivationTechnique("requirements-based") class TestOrchWithPersistency(FitScenario): """ Tests orchestration with persistency scenario.