[MASTER_RUNNER][HEADLESS_E2E][MATH_VERIFICATION][ZERO_REGRESSIONS]

Verification & Automated Test Suites

Complete test harness documentation covering 14 unit and end-to-end simulation suites with Master Test Runner.

Master Test Suite Runner

Execute all 14 test suites sequentially with aggregated telemetry summary:

Terminal
bash
# Run all 14 test suites sequentially
npm test
 
# Or with tsx directly
npm run test:all

Automated Test Inventory & Coverage

Every trading calculation, database operation, and TUI component is verified with dedicated suites:

Test Suite FileVerification Domain & Coverage
test_strategy_indicators.tsSMA 9, SMA 21, and RSI 14 mathematical calculation accuracy
test_risk_manager.ts$1,000 notional cap enforcement, daily loss and loss streak breakers
test_adaptive_filter.tsAdaptive memory filtering across all 4 modes (STRICT, REPEAT, etc.)
test_execution_position.tsPaper order fill simulation, 1:2 SL/TP brackets, reverse cross exit
test_market_service.tsMulti-exchange REST ingestion, symbol normalizer, synthetic OHLCV
test_replay_engine.tsBacktest metrics (Win Rate, Profit Factor, Peak Drawdown)
test_bot_session_loop.tsSessionTracker live telemetry and asynchronous polling pipeline
test_tui_utils.tsMathematical box drawing, Braille sparklines, ANSI color codes
test_export_clipboard.tsSerializer validation for TXT, CSV, MD, DOCX, Vector PDF & Clipboard
test_database_reset.tsDatabase truncation and table re-initialization verification
test_env_config.tsEnvironment variable validation and file writer integrity
test_theme_presets.tsColor palette contrast and ANSI styling validation for 14 themes
test_tui_command_flow.tsHeadless E2E simulation of keyboard navigation, modal & slash flow
test_supabase_validator.tsSupabase client connection, credentials check, and RLS validation
Last verified: August 2026Maintained by Zenth Core