Initial integration tests#194
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
bfff457 to
784bdd7
Compare
|
The created documentation from the pull request is available at: docu-html |
* Add process args test eclipse-score#172 * Add run target switch test eclipse-score#174 * Add runtime crash test eclipse-score#177 * Add monitoring failure test eclipse-score#178 * Add crash on startup test eclipse-score#179
937434e to
f82bf7e
Compare
| int main() | ||
| { | ||
| deploy_and_crash_if_not_present("crashed_once"); | ||
| deploy_and_crash_if_not_present("crashed_twice"); |
There was a problem hiding this comment.
Where are these files being cleaned up again?
| derivation_technique="requirements-analysis", | ||
| ) | ||
| def test_crash_on_startup(target, setup_test, test_output_dir, remote_test_dir): | ||
| """Integration test verifying that the launch manager correctly handles processes |
There was a problem hiding this comment.
I think we need some more description of what is being tested here and what is the expected behaviour.
The process is asking for this information:
- The objective of the test.
- Inputs
- Expected outcome (e.g. “A success message is displayed.”)
- Test environment (e.g. network configuration, clean system state)
I know there is more info in control_client_mock.cpp available, but I assume we need this info in a test spec as part of a test report at least at a high level.
Maybe something like:
"""
Objective: Verifies that the launch manager correctly handles processes that crash before reporting kRunning.
Case 1: Process crashes before Running state but eventually starts up successfully before the configured number of restart attempts is exceeded.
Expected Behaviour: Process startup successful, RunTarget activation successful
Case 2: Process keeps crashing, exceeding the number of restart attempts.
Expected Behaviour: Process startup fails, LaunchManager executes recovery action.
"""| #include <score/lcm/control_client.h> | ||
| #include <score/lcm/lifecycle_client.h> | ||
|
|
||
| score::lcm::ControlClient client; |
There was a problem hiding this comment.
After merging #191 we cannot create the ControlClient in global scope as mw::log might not be initialized yet and does not support logging at this point in time.
Same for all other tests
Implemented the following tests:
Improvements/fixes to test helper & smoke test