๐งช 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.