test(cli): parsec smartlog / sl 통합 테스트 추가#319
Merged
Conversation
parsec smartlog (#305)과 sl 별칭이 develop에 머지됐지만 CLI 통합 테스트가 전혀 없었음. 5개 시나리오 추가: - test_smartlog_empty_repo: 빈 repo → 'No active worktrees' 확인 - test_sl_alias_works_like_smartlog: sl == smartlog 동일 출력 확인 - test_smartlog_json_empty_is_array: --json 빈 repo → [] JSON 배열 - test_smartlog_shows_worktree: worktree 1개 → 티켓·(base) 마커 표시 - test_smartlog_json_one_worktree: --json 1 worktree → 필드 검증 (ticket, branch, base_branch, commits, pr/ci 미노출) Closes #318 Co-Authored-By: Claude Sonnet 4.6 <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.
무엇
parsec smartlog(#305)과sl별칭에 대한 CLI 통합 테스트 5개를tests/cli_tests.rs에 추가.왜
parsec smartlog/sl은 develop에 이미 머지됐으나 CLI 통합 테스트가 전무했음smartlog.rs내부)는 존재하지만 실제 바이너리를 통한 end-to-end 커버리지 부재--json직렬화 계약 검증 필요변경
test_smartlog_empty_repotest_sl_alias_works_like_smartlogsl별칭 ==smartlog동일 출력test_smartlog_json_empty_is_array--json빈 repo → 유효한[]test_smartlog_shows_worktreetest_smartlog_json_one_worktree--json필드 검증 (ticket/branch/base_branch/commits 존재, pr·ci 미노출)리스크
롤백
Test plan
→ 5 passed (로컬 확인 완료)
Closes #318
@erishforG 검토 부탁드립니다.