#!/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="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "${SCRIPT_DIR}/test-stability-common.sh" # Zsh-specific overrides and enhancements # Override associative array declarations for zsh compatibility typeset -A test_results typeset -A test_failures typeset -A test_successes typeset -A run_times typeset -A test_names # 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