Orchestrata Ultimate › Tests › Reference › scripts › test_test_durations
Tests reference — tests/scripts/test_test_durations.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_test_durations.py
source · 22 tests · 410 lines
Tests for scripts/test_durations.py — the pure reader over
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_read_records_missing_file_returns_empty |
32 | |
| function | test_read_records_parses_valid_lines |
36 | |
| function | test_read_records_skips_malformed_lines |
52 | |
| function | test_read_records_defaults_missing_ts_to_zero |
68 | |
| function | test_slowest_orders_descending_and_caps_at_n |
75 | |
| function | test_slowest_uses_only_latest_duration_per_test |
85 | |
| function | test_over_threshold_filters_and_sorts |
95 | |
| function | test_over_threshold_empty_when_nothing_slow |
105 | |
| function | test_main_reports_no_records_for_missing_file |
110 | |
| function | test_main_prints_slowest_and_defect_candidates |
119 | |
| function | test_main_no_defect_candidates_section_when_nothing_over_threshold |
139 | |
| function | test_main_subprocess_entrypoint_smoke |
150 | |
| function | test_read_records_skips_header_lines_shape_aware |
204 | Item 6 pin: a header line never becomes a DurationRecord. |
| function | test_read_headers_parses_header_lines_only |
218 | |
| function | test_runs_groups_by_run_id_and_joins_header |
234 | |
| function | test_runs_command_output_shows_12_char_commit_and_lanes |
264 | |
| function | test_runs_no_header_lists_with_absent_head_commit |
284 | A run with identified rows but no header line (aged out / writer died |
| function | test_runs_legacy_rows_counted_but_never_grouped |
309 | |
| function | test_runs_last_limits_and_orders_newest_first |
333 | |
| function | test_run_flag_scopes_slow_to_one_run |
361 | |
| function | test_run_flag_unknown_run_id_exits_nonzero |
379 | |
| function | test_default_invocation_still_works_with_run_and_runs_present |
391 | Existing --slow/--threshold behavior stays byte-compatible for the |