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
3 changes: 3 additions & 0 deletions .github/workflows/test_and_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
- name: Execute Unit Tests with Coverage Analysis
run: |
python ./scripts/quality_runners.py
- name: Execute Feature Integration Tests
run: |
bazel test //feature_integration_tests/test_cases:fit
- name: Publish build summary
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion bazel_common/score_python.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python.toolchain(
python_version = PYTHON_VERSION,
)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True)
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pip_score_venv_test",
python_version = PYTHON_VERSION,
Expand Down
17 changes: 5 additions & 12 deletions feature_integration_tests/test_cases/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# *******************************************************************************
load("@pip_score_venv_test//:requirements.bzl", "all_requirements")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
load("@score_tooling//python_basics:defs.bzl", "score_py_pytest", "score_virtualenv")
load("@score_tooling//python_basics:defs.bzl", "score_py_pytest")

# In order to update the requirements, change the `requirements.txt` file and run:
# `bazel run //feature_integration_tests/python_test_cases:requirements.update`.
Expand All @@ -31,31 +31,24 @@ compile_pip_requirements(
],
)

score_virtualenv(
name = "python_tc_venv",
reqs = all_requirements,
venv_name = ".python_tc_venv",
)

# Tests targets
score_py_pytest(
name = "fit",
srcs = glob(["tests/**/*.py"]) + [
"conftest.py",
"fit_scenario.py",
"test_properties.py",
],
args = [
"--traces=all",
"--rust-target-path=$(rootpath //feature_integration_tests/test_scenarios/rust:rust_test_scenarios)",
],
data = [
":python_tc_venv",
"conftest.py",
"fit_scenario.py",
"test_properties.py",
"//feature_integration_tests/test_scenarios/rust:rust_test_scenarios",
],
env = {
"RUST_BACKTRACE": "1",
},
pytest_config = ":pytest.ini",
pytest_config = "//:pyproject.toml",
deps = all_requirements,
)
15 changes: 0 additions & 15 deletions feature_integration_tests/test_cases/pytest.ini

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


@add_test_properties(
partially_verifies=["feat_req__persistency__persistency"],
partially_verifies=["feat_req__persistency__store_data"],
test_type="requirements-based",
derivation_technique="requirements-analysis",
)
Expand Down
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
[tool.pytest]
addopts = ["-v"]
pythonpath = [
".",
"scripts/tooling",
"feature_integration_tests/test_cases"
]
testpaths = [
"scripts/tooling/tests",
"feature_integration_tests/test_cases/tests"
]
junit_log_passing_tests = true
junit_family = "xunit1"
markers = [
"metadata",
"test_properties(dict): Add custom properties to test XML output",
]
filterwarnings = [
'ignore:record_property is incompatible with junit_family:pytest.PytestWarning',
'ignore:record_xml_attribute is an experimental feature:pytest.PytestExperimentalApiWarning',
]
testpaths = ["scripts/tooling/tests"]

[tool.ruff]
# Exclude a variety of commonly ignored directories.
Expand Down
Loading