Skip to content

TST: cover Monte Carlo confidence ellipse helpers - #1165

Merged
Gui-FernandesBR merged 1 commit into
RocketPy-Team:developfrom
ting-hong-shieh:codex/test-tools-confidence-ellipse-coverage
Aug 15, 2026
Merged

TST: cover Monte Carlo confidence ellipse helpers#1165
Gui-FernandesBR merged 1 commit into
RocketPy-Team:developfrom
ting-hong-shieh:codex/test-tools-confidence-ellipse-coverage

Conversation

@ting-hong-shieh

Copy link
Copy Markdown

Summary

  • add deterministic unit coverage for confidence-ellipse axis calculations using a known covariance matrix
  • verify generated apogee and impact ellipse patches preserve centers, standard-deviation scaling, colors, and opacity
  • keep the slice limited to tests; production behavior is unchanged

Coverage

Using tests/unit/test_tools.py with rocketpy/tools.py as the measured source:

  • merge base 6c156490: 50% (157/313 statements)
  • this branch: 57% (178/313 statements)

That covers 21 additional statements in the confidence-ellipse helpers.

Validation

  • .venv/bin/python -m pytest tests/unit/test_tools.py -q -p no:cacheprovider — 32 passed
  • .venv/bin/ruff check tests/unit/test_tools.py
  • .venv/bin/ruff format --check tests/unit/test_tools.py

Relates to #709.

@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.33%. Comparing base (6c15649) to head (139c5af).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1165   +/-   ##
========================================
  Coverage    84.33%   84.33%           
========================================
  Files          130      130           
  Lines        17258    17258           
========================================
  Hits         14554    14554           
  Misses        2704     2704           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ting-hong-shieh
ting-hong-shieh marked this pull request as ready for review August 15, 2026 04:44
@ting-hong-shieh
ting-hong-shieh requested a review from a team as a code owner August 15, 2026 04:44
@Gui-FernandesBR Gui-FernandesBR linked an issue Aug 15, 2026 that may be closed by this pull request
@Gui-FernandesBR
Gui-FernandesBR merged commit be195d4 into RocketPy-Team:develop Aug 15, 2026
17 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.

TST: Increase code coverage to 90%

2 participants