Skip to content

Add comprehensive test coverage for scripts directory#66

Merged
SorraTheOrc merged 4 commits into
mainfrom
copilot/considerable-pig
Dec 5, 2025
Merged

Add comprehensive test coverage for scripts directory#66
SorraTheOrc merged 4 commits into
mainfrom
copilot/considerable-pig

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 5, 2025

Scripts in /scripts had partial test coverage (9/13 scripts tested) and were excluded from pytest coverage configuration.

Changes

  • pytest.ini: Added --cov=scripts to include scripts in coverage reports
  • test_eoe_dump_state.py: 12 tests for world bundle dump utility
    • CLI argument parsing, export functionality, error handling
  • test_plot_environment_trajectories.py: 30 tests for telemetry plotting
    • Run spec parsing, series extraction, matplotlib mocking
  • test_run_ai_observer.py: 35 tests for AI observer CLI
    • Local/service modes, argument parsing, report validation

Results

Metric Target Achieved
Scripts coverage 80% 88.6%
New tests 15+ 77
Total tests - 1042
Overall coverage 90% 91.37%
Original prompt

"Issue 65 - Comprehensive Scripts Test Coverage" to test agent

Created from Copilot CLI via the copilot delegate command.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 5, 2025 06:20
- Create tests/scripts/test_eoe_dump_state.py (12 tests, 100% coverage)
- Create tests/scripts/test_plot_environment_trajectories.py (30 tests, 100% coverage)
- Create tests/scripts/test_run_ai_observer.py (35 tests, 93% coverage)
- Update pytest.ini to include --cov=scripts for coverage reporting

Total: 77 new tests for previously untested scripts
Scripts module coverage: 88.6% (exceeds 80% requirement)
All 1042 tests pass with 91.37% overall coverage

Closes #65
Copilot AI changed the title [WIP] Add comprehensive scripts test coverage Add comprehensive test coverage for scripts directory Dec 5, 2025
Copilot AI requested a review from SorraTheOrc December 5, 2025 06:26
@SorraTheOrc SorraTheOrc merged commit aa4b3fb into main Dec 5, 2025
1 check passed
@SorraTheOrc SorraTheOrc deleted the copilot/considerable-pig branch December 5, 2025 06:36
SorraTheOrc added a commit that referenced this pull request Dec 5, 2025
- Updated task 10.1.9 status from READY to COMPLETED
- PR #66 merged on 2025-12-05 with 77 new tests
- Added test_eoe_dump_state.py (12 tests, 100% coverage)
- Added test_plot_environment_trajectories.py (30 tests, 100% coverage)
- Added test_run_ai_observer.py (35 tests, 93% coverage)
- Updated pytest.ini to include --cov=scripts
- Scripts module coverage: 88.6% (exceeds 80% requirement)
- Overall coverage improved to 91.37% (up from 90.95%)
- Total tests increased to 1,042 (up from 849)
- Updated next recommended task to 11.5.1 (Issue #68)
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.

2 participants