#!/bin/zsh # Test Stability Runner for TimeSafari (Zsh Version) # Executes the full test suite 10 times and analyzes failure patterns # Author: Matthew Raymer # Source common functions SCRIPT_DIR="$(dirname "$0")" source "${SCRIPT_DIR}/test-stability-common-zsh.sh" # Zsh-specific overrides and enhancements # Note: Associative arrays are now defined in the common file # Enhanced progress tracking for zsh track_test_progress_enhanced() { local run_number="$1" local test_file="$2" log_info "Run $run_number/$TOTAL_RUNS: Executing $test_file" # Enhanced progress bar with zsh-specific features local percentage=$((run_number * 100 / TOTAL_RUNS)) local filled=$((run_number * 50 / TOTAL_RUNS)) local empty=$((50 - filled)) # Create enhanced progress bar local progress_bar="" for ((i=0; i