spawn/test
A 35997c8ae5
refactor: extract helpers from run_test() in test/mock.sh (#713)
Break down the 150-line run_test() function into focused helpers:
- run_script_with_timeout(): script execution with env vars and timeout
- show_failure_output(): display last 20 lines on failure
- assert_error_scenario(): handle error scenario assertions
- assert_cloud_api_calls(): cloud-specific API call assertions
- record_test_result(): write pass/fail to RESULTS_FILE

run_test() is now 57 lines (62% reduction), each helper is under 35 lines.

Agent: complexity-hunter

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-12 15:01:49 -08:00
..
fixtures QA-Bot setup (#335) 2026-02-10 19:51:07 -08:00
mock.sh refactor: extract helpers from run_test() in test/mock.sh (#713) 2026-02-12 15:01:49 -08:00
qa-dry-run.sh feat: qa bot and emails (#565) 2026-02-11 20:19:45 -08:00
record.sh refactor: decompose setup_mock_agents and record_cloud into helpers (#722) 2026-02-12 15:00:56 -08:00
run.sh refactor: extract assert_equals/assert_match helpers in test/run.sh (#727) 2026-02-12 15:00:59 -08:00
update-readme.py QA-Bot setup (#335) 2026-02-10 19:51:07 -08:00