test(cli): compress / config schema / log --export 통합 테스트 추가#315
Merged
Conversation
Release v0.4.0
docs: ship v0.4.0 versioned snapshot
…xport Cover three commands added in v0.4.0 that had zero test coverage: - test_compress_nothing_to_do: single-commit worktree exits cleanly - test_compress_squashes_commits: 2-commit branch is reduced to 1 - test_config_schema_outputs_json: output is valid JSON Schema - test_history_log_export_empty: empty log exits 0 with no stdout Closes #314 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
v0.4.0에서 추가된 세 커맨드(
compress,config schema,log --export)에 대한 통합 테스트 4개를tests/cli_tests.rs에 추가합니다.test_compress_nothing_to_dotest_compress_squashes_commitstest_config_schema_outputs_jsonconfig schema→ valid JSON & JSON Schema 필드 검증test_history_log_export_empty왜
세 커맨드 모두 v0.4.0에서 신규 추가됐지만
cli_tests.rs에 커버리지가 전혀 없었음. 회귀 방지 안전망 확보.변경
tests/cli_tests.rs+166줄 (테스트 전용, 프로덕션 코드 무변경)리스크
없음 — 테스트만 추가,
cargo build/clippy/fmt모두 통과롤백
테스트 파일 라인 삭제만으로 완전 롤백 가능
Test plan
Closes #314
@erishforG 리뷰 부탁드립니다 🖤