Skip to content
Open
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
670 changes: 670 additions & 0 deletions feature_integration_tests/LIFECYCLE_TESTS_SUMMARY.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion feature_integration_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bazel test --config=linux-x86_64 //feature_integration_tests/test_cases:fit
To run specific test suites:

```sh
bazel test //feature_integration_tests/test_cases:fit_rust
bazel test --config=linux-x86_64 //feature_integration_tests/test_cases:fit_rust
bazel test --config=linux-x86_64 //feature_integration_tests/test_cases:fit_cpp
```

Expand Down
Empty file.
65 changes: 65 additions & 0 deletions feature_integration_tests/test_cases/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ score_py_pytest(
],
data = [
"conftest.py",
"daemon_helpers.py",
"fit_scenario.py",
"lifecycle_scenario.py",
"persistency_scenario.py",
"test_properties.py",
"//feature_integration_tests/test_scenarios/rust:rust_test_scenarios",
Expand All @@ -67,7 +69,9 @@ score_py_pytest(
],
data = [
"conftest.py",
"daemon_helpers.py",
"fit_scenario.py",
"lifecycle_scenario.py",
"persistency_scenario.py",
"test_properties.py",
"//feature_integration_tests/test_scenarios/cpp:cpp_test_scenarios",
Expand All @@ -76,10 +80,71 @@ score_py_pytest(
deps = all_requirements,
)

# Daemon integration tests (Rust)
score_py_pytest(
name = "fit_daemon_rust",
srcs = glob(["tests/**/*.py"]),
args = [
"-m rust",
"--traces=all",
"--rust-target-path=$(rootpath //feature_integration_tests/test_scenarios/rust:rust_test_scenarios)",
"-k with_daemon",
],
data = [
"conftest.py",
"daemon_helpers.py",
"fit_scenario.py",
"lifecycle_scenario.py",
"persistency_scenario.py",
"test_properties.py",
"//feature_integration_tests/test_scenarios/rust:rust_test_scenarios",
"@score_lifecycle_health//examples/rust_supervised_app",
"@score_lifecycle_health//src/launch_manager_daemon:launch_manager",
],
env = {
"RUST_BACKTRACE": "1",
},
pytest_config = "//:pyproject.toml",
deps = all_requirements,
)

# Daemon integration tests (C++)
score_py_pytest(
name = "fit_daemon_cpp",
srcs = glob(["tests/**/*.py"]),
args = [
"-m cpp",
"--traces=all",
"--cpp-target-path=$(rootpath //feature_integration_tests/test_scenarios/cpp:cpp_test_scenarios)",
"-k with_daemon",
],
data = [
"conftest.py",
"daemon_helpers.py",
"fit_scenario.py",
"lifecycle_scenario.py",
"persistency_scenario.py",
"test_properties.py",
"//feature_integration_tests/test_scenarios/cpp:cpp_test_scenarios",
"@score_lifecycle_health//examples/cpp_supervised_app",
"@score_lifecycle_health//src/launch_manager_daemon:launch_manager",
],
pytest_config = "//:pyproject.toml",
deps = all_requirements,
)

test_suite(
name = "fit",
tests = [
":fit_cpp",
":fit_rust",
],
)

test_suite(
name = "fit_daemon",
tests = [
":fit_daemon_cpp",
":fit_daemon_rust",
],
)
Loading
Loading