test: 테스트 커버리지 77% → 80% 달성 (#204) #222

Merged
jihoson merged 1 commits from feature/issue-204-test-coverage-80 into main 2026-02-23 14:56:22 +09:00
Collaborator

Summary

  • 신규 테스트 파일 2개 + 기존 파일 2개 확장으로 커버리지 77% → 80% 달성
  • 815개 테스트 전부 통과, 미커버 라인 1207 → 1046 (161줄 추가 커버)

변경 내역

파일 추가 테스트 커버리지 향상
tests/test_logging_config.py (신규) JSONFormatter 4개 + setup_logging 2개 39% → 100%
tests/test_strategies_base.py (신규) BaseStrategy 추상 클래스 2개 0% → 100%
tests/test_backup.py BackupExporter 빠진 경로 5개 + CloudStorage boto3 모킹 20개 exporter 73%→97%, cloud_storage 23%→85%
tests/test_context.py ContextSummarizer 전체 22개 64% → 98%

Test plan

  • pytest --cov=src --cov-report=term-missing → TOTAL 80%
  • 815 passed, 0 failed

Closes #204

🤖 Generated with Claude Code

## Summary - 신규 테스트 파일 2개 + 기존 파일 2개 확장으로 커버리지 77% → 80% 달성 - 815개 테스트 전부 통과, 미커버 라인 1207 → 1046 (161줄 추가 커버) ## 변경 내역 | 파일 | 추가 테스트 | 커버리지 향상 | |---|---|---| | `tests/test_logging_config.py` (신규) | JSONFormatter 4개 + setup_logging 2개 | 39% → 100% | | `tests/test_strategies_base.py` (신규) | BaseStrategy 추상 클래스 2개 | 0% → 100% | | `tests/test_backup.py` | BackupExporter 빠진 경로 5개 + CloudStorage boto3 모킹 20개 | exporter 73%→97%, cloud_storage 23%→85% | | `tests/test_context.py` | ContextSummarizer 전체 22개 | 64% → 98% | ## Test plan - [x] `pytest --cov=src --cov-report=term-missing` → TOTAL 80% - [x] 815 passed, 0 failed Closes #204 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agentson added 1 commit 2026-02-23 12:48:18 +09:00
test: 테스트 커버리지 77% → 80% 달성 (issue #204)
Some checks failed
CI / test (pull_request) Has been cancelled
4fc4a57036
신규/추가 테스트:
- tests/test_logging_config.py: JSONFormatter, setup_logging 전체 커버 (14줄)
- tests/test_strategies_base.py: BaseStrategy 추상 클래스 커버 (6줄)
- tests/test_backup.py: BackupExporter 미커버 경로(빈 CSV, compress=True CSV,
  포맷 실패 로깅, 기본 formats) + CloudStorage boto3 모킹 테스트 20개 (113줄)
- tests/test_context.py: ContextSummarizer 전체 커버 22개 테스트 (50줄)

총 815개 테스트 통과, TOTAL 커버리지 80% (1046줄 미커버 / 5225줄 전체)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jihoson merged commit c737d5009a into main 2026-02-23 14:56:22 +09:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#222