Skip to content

๐Ÿงช Test Coverage Overview

This page summarizes the scope of automated tests written for the TradeIQ platform.

โœ… Testing Framework

  • Framework: Google Test (GTest)
  • Coverage: All core components of StatsEngine, including edge cases and invalid input handling.

๐Ÿ“‚ Test Groups

Category Functions Covered
๐Ÿ“ˆ Returns computeDailyReturns, computeTotalReturn, computeAnnualizedReturn
๐Ÿ“Š Volatility computeAnnualizedVolatility, computeRollingVolatility, computeRollingStandardDeviation
โš–๏ธ Ratios Sharpe, Sortino, Treynor, Calmar, Information, Omega, Sterling
๐Ÿ“‰ Drawdowns computeMaxDrawdown, computeAverageDrawdown, computeMaxRecoveryTime
๐Ÿ” Rolling Rolling Sharpe / Sortino
๐Ÿ”— Correlation Covariance & correlation matrix functions
๐Ÿ“Š Distribution Skewness, Kurtosis, Gain/Loss Ratio, Hit Ratio
๐Ÿ“ˆ Capture Upside and Downside Capture Ratios
๐Ÿงฐ Utilities exportToCSV and internal helpers

๐Ÿ› ๏ธ Notes

  • Edge case inputs (e.g. zero stddev, empty vectors, mismatched lengths) are tested and throw exceptions as expected.
  • Tests are located under the tests/stats/ directory and split by category.
  • Future test coverage will extend to API/CLI/GUI layers as implemented.

๐Ÿ“Œ See Also