Files
John Crispin 89244c13ed tests: consolidate test framework execution and eliminate remaining duplication
- Add comprehensive test execution utilities to test-utils.uc
- Create report_test_pass/fail/error() functions for standardized output formatting
- Create create_diff_files() utility to consolidate diff generation across all frameworks
- Create load_test_files() and load_test_board_data() to standardize file loading
- Create process_test_output() to consolidate template rendering and file generation
- Create format_test_suite_results() to standardize test suite result formatting
- Refactor all 3 test framework classes to use shared execution utilities
- Reduce TestFramework.run_test from 47 to 23 lines (-51% code reduction)
- Reduce TestFramework.run_tests from 23 to 7 lines (-70% code reduction)
- Reduce IntegrationTestFramework.run_board_test from 53 to 22 lines (-58% code reduction)
- Reduce IntegrationTestFramework.run_tests from 20 to 8 lines (-60% code reduction)
- Reduce FullIntegrationTestFramework.run_full_test from 46 to 26 lines (-43% code reduction)
- Reduce FullIntegrationTestFramework.run_tests from 19 to 8 lines (-58% code reduction)
- Remove debug statements from run-single-integration-test.uc for cleaner output
- Eliminate ~270 lines of duplicated test execution logic across all frameworks
- Maintain full backwards compatibility and test API
- All 122 unit tests continue to pass with consolidated implementation

Signed-off-by: John Crispin <john@phrozen.org>
2026-02-09 14:43:00 +01:00
..