From cfba0fb6368ceae9489bcbfeaabc75b04bdcaeb6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 6 Feb 2026 06:32:06 +0000 Subject: test: improve CLI test summary table formatting Optimize test results display for better readability: - Use ASCII box characters for better terminal compatibility - Improve column alignment and spacing - Remove redundant symbols in status column (PASS/FAIL only) - Left-align labels, right-align numbers in statistics table - Add color-coded pass rate (green 100%, yellow 80%+, red <80%) - Enhance final verdict section with indentation Co-Authored-By: Claude Sonnet 4.5 --- spec/cli/run_all_tests.sh | 66 ++++++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 30 deletions(-) (limited to 'spec/cli/run_all_tests.sh') diff --git a/spec/cli/run_all_tests.sh b/spec/cli/run_all_tests.sh index a095796..8e5fb6d 100755 --- a/spec/cli/run_all_tests.sh +++ b/spec/cli/run_all_tests.sh @@ -110,16 +110,16 @@ run_test_suite "Execution Test" "$SCRIPT_DIR/test_execution.sh" # Print detailed summary echo "" -echo -e "${CYAN}╔════════════════════════════════════════════════════════╗" -echo "║ YueScript CLI Test Results Summary ║" -echo "╚════════════════════════════════════════════════════════╝${NC}" +echo -e "${BLUE}═══════════════════════════════════════════════════════════" +echo " YueScript CLI Test Results Summary" +echo "═══════════════════════════════════════════════════════════${NC}" echo "" # Print per-suite statistics echo -e "${CYAN}Test Suite Details:${NC}" -echo "┌────────────────────────────────┬────────┬────────┬────────┬──────────┐" -echo "│ Test Suite │ Total │ Passed │ Failed │ Status │" -echo "├────────────────────────────────┼────────┼────────┼────────┼──────────┤" +echo "┌──────────────────────────────┬───────┬────────┬────────┬─────────┐" +echo "│ Test Suite │ Total │ Passed │ Failed │ Status │" +echo "├──────────────────────────────┼───────┼────────┼────────┼─────────┤" for ((i=0; i