Skip to content

Fix/mos 0007#12

Merged
Lidizz merged 4 commits into
mainfrom
fix/MOS-0007
Feb 27, 2026
Merged

Fix/mos 0007#12
Lidizz merged 4 commits into
mainfrom
fix/MOS-0007

Conversation

@Lidizz
Copy link
Copy Markdown
Owner

@Lidizz Lidizz commented Feb 27, 2026

No description provided.

- SPY data available  portfolio values correctly scaled to SPY growth
- SPY data empty  falls back to 10% CAGR calculation
- SPY fetch throws exception  CAGR fallback, no exception propagates
- Repository exception  same CAGR fallback
- CAGR math verified: 2-year period  21% growth
- Timeline delegates to TimelineAggregator
Plain unit tests (no Spring context):
- Empty/single-point edge cases for every Timeframe value
- ONE_DAY: returns all points unchanged
- ONE_WEEK: samples first day of each ISO week, reduces count
- ONE_MONTH: samples first day of each month, 12 per year
- ONE_YEAR: samples first day of each year
- ALL/smart: 500 returns unchanged; 3000 points capped near 500;
  always includes last point; preserves chronological order
…nResults

- InvestmentBuilder.test.tsx: 7 tests covering form rendering, adding
  investments, validation states, simulation button behavior
- SimulationResults.test.tsx: 11 tests covering metric cards, currency
  formatting, profit/loss styling, holdings table, chart rendering,
  disclaimer display
- Mock PortfolioChart (canvas-based) and PortfolioHeader components
- Use within() scoping for assertions on duplicated text across sections
- Total frontend tests: 90 (72 existing + 18 new)
- Change CI from 'npm run test' to 'npm run test:coverage'
- Upload coverage report as artifact (frontend-coverage, 14-day retention)
- Coverage thresholds enforced at 30% (statements, branches, functions, lines)
- Current coverage: 62% statements, 56% branches, 48% functions, 64% lines
- Backend JaCoCo remains disabled (incompatible with Java 25)
@Lidizz Lidizz merged commit 3ffce31 into main Feb 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant