Skip to content

Commit 8d4ef3b

Browse files
authored
use attribute plugin (#42)
Test attributes are added with decorator. Added settings for test discovery.
1 parent af717c2 commit 8d4ef3b

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"rust-analyzer.linkedProjects": [
33
"rust-project.json"
4-
]
4+
],
5+
"python.testing.pytestArgs": [
6+
"feature_integration_tests"
7+
],
8+
"python.testing.unittestEnabled": false,
9+
"python.testing.pytestEnabled": true
510
}

feature_integration_tests/python_test_cases/tests/basic/test_orchestartion_with_persistency.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,28 @@
33
from typing import Any, Generator
44

55
import pytest
6+
7+
try:
8+
from attribute_plugin import add_test_properties # type: ignore[import-untyped]
9+
except ImportError:
10+
# Define no-op decorator if attribute_plugin is not available (outside bazel)
11+
# Keeps IDE debugging functionality
12+
def add_test_properties(*args, **kwargs):
13+
def decorator(func):
14+
return func # No-op decorator
15+
16+
return decorator
17+
18+
619
from fit_scenario import FitScenario, temp_dir_common
720
from testing_utils import LogContainer
821

922

10-
@pytest.mark.PartiallyVerifies(["feat_req__persistency__persistency"])
11-
@pytest.mark.Description(
12-
"Verifies Persistency stores data persistently across multiple orchestration runs."
23+
@add_test_properties(
24+
partially_verifies=["feat_req__persistency__persistency"],
25+
test_type="requirements-based",
26+
derivation_technique="requirements-analysis",
1327
)
14-
@pytest.mark.TestType("requirements-based")
15-
@pytest.mark.DerivationTechnique("requirements-based")
1628
class TestOrchWithPersistency(FitScenario):
1729
"""
1830
Tests orchestration with persistency scenario.

0 commit comments

Comments
 (0)