Orchestrata Ultimate › Tests › Reference › scripts › test_run_tests_cap
Tests reference — tests/scripts/test_run_tests_cap.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_run_tests_cap.py
source · 16 tests · 641 lines
Tests for scripts/run_tests.py's test-phase cap helpers (RUL-038).
Covers: core.threading.pytest_live_observer, core.threading.pytest_live_reader, core.threading.test_executor
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_test_cap_seconds_returns_default_300_when_unset |
57 | Default: 300 seconds when ORCH_TEST_CAP_SECONDS is not set. |
| function | test_test_cap_seconds_respects_env_override |
84 | Custom cap when ORCH_TEST_CAP_SECONDS is set. |
| function | test_test_cap_seconds_casts_to_int |
111 | The function casts the env value to int (truncates floats). |
| function | test_run_deadline_adds_cap_to_current_time |
143 | Deadline = current time + cap_seconds. |
| function | test_run_deadline_respects_custom_cap |
152 | Custom cap_seconds produces custom deadline. |
| function | test_child_run_env_includes_test_deadline |
165 | The deadline is injected as ORCHESTRATA_TEST_DEADLINE. |
| function | test_child_run_env_includes_run_id |
175 | ORCH_RUN_ID is propagated if present. |
| function | test_child_run_env_empty_run_id_when_unset |
204 | ORCH_RUN_ID is empty string when not set. |
| function | test_child_process_selfterminates_at_deadline |
239 | A child process with a tiny deadline self-terminates at cap. |
| function | test_child_process_exits_normally_when_under_cap |
285 | A child process under the deadline completes normally. |
| function | test_child_run_env_contract |
322 | Contract test: _child_run_env returns correct keys using imported constants. |
| function | test_child_run_env_multi_file_collection_succeeds_with_stamp |
351 | Integration proof: _child_run_env stamp lets multi-file collection pass. |
| function | test_child_run_env_multi_file_collection_fails_without_stamp |
395 | Negative test: multi-file collection fails without SANCTIONED_RUNNER_ENV. |
| function | test_child_run_env_executor_env_seam |
449 | P1: _child_run_env stamp rides the executor env seam (regression proof). |
| function | test_run_suite_batch_path_stamps_env |
503 | P2: _run_suite batch path uses _child_run_env stamp (source-level check). |
| function | test_run_suite_solo_retry_path_stamps_env |
569 | P2: _run_suite solo-retry path passes stamped env (source-level check). |