From 0669bd1babac8f180efc7cd40c6c172d9c39586e Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 3 Nov 2025 21:45:56 -0500 Subject: [PATCH] chore: release v0.3.1 Critical bug fixes for position tracking: - Fixed cash reset between trading days - Fixed positions lost over weekends - Fixed profit calculation accuracy Plus standardized testing infrastructure. --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c27ccd..28d6c9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.1] - 2025-11-03 + ### Fixed - **Critical:** Fixed position tracking bugs causing cash reset and positions lost over weekends - Removed redundant `ModelDayExecutor._write_results_to_db()` that created corrupt records with cash=0 and holdings=[] @@ -18,6 +20,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Position tracking now exclusively handled by trade tools (`buy()`, `sell()`) and `add_no_trade_record_to_db()` - Daily profit calculation compares to start-of-day (action_id=0) portfolio value for accurate P&L tracking +### Added +- Standardized testing scripts for different workflows: + - `scripts/test.sh` - Interactive menu for all testing operations + - `scripts/quick_test.sh` - Fast unit test feedback (~10-30s) + - `scripts/run_tests.sh` - Main test runner with full configuration options + - `scripts/coverage_report.sh` - Coverage analysis with HTML/JSON/terminal reports + - `scripts/ci_test.sh` - CI/CD optimized testing with JUnit/coverage XML output +- Comprehensive testing documentation in `docs/developer/testing.md` +- Test coverage requirement: 85% minimum (currently at 89.86%) + ## [0.3.0] - 2025-11-03 ### Added - Development & Testing Features