Skip to content

test(cli): parsec smartlog / sl 통합 테스트 추가#319

Merged
erishforG merged 1 commit into
developfrom
test/auto-smartlog-cli-tests
May 26, 2026
Merged

test(cli): parsec smartlog / sl 통합 테스트 추가#319
erishforG merged 1 commit into
developfrom
test/auto-smartlog-cli-tests

Conversation

@erishforG
Copy link
Copy Markdown
Owner

무엇

parsec smartlog (#305)과 sl 별칭에 대한 CLI 통합 테스트 5개를 tests/cli_tests.rs에 추가.

  • parsec smartlog / sl은 develop에 이미 머지됐으나 CLI 통합 테스트가 전무했음
  • 단위 테스트(smartlog.rs 내부)는 존재하지만 실제 바이너리를 통한 end-to-end 커버리지 부재
  • 릴리즈 회귀 방지 및 --json 직렬화 계약 검증 필요

변경

테스트 검증 내용
test_smartlog_empty_repo 빈 repo → 'No active worktrees' 메시지
test_sl_alias_works_like_smartlog sl 별칭 == smartlog 동일 출력
test_smartlog_json_empty_is_array --json 빈 repo → 유효한 []
test_smartlog_shows_worktree worktree 존재 시 티켓·base 마커 노출
test_smartlog_json_one_worktree --json 필드 검증 (ticket/branch/base_branch/commits 존재, pr·ci 미노출)

리스크

  • 없음 — 테스트 전용 변경, 프로덕션 코드 무변경

롤백

  • 이 파일 변경만 revert하면 됨

Test plan

cargo test --quiet test_smartlog
cargo test --quiet test_sl

→ 5 passed (로컬 확인 완료)

Closes #318

@erishforG 검토 부탁드립니다.

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>
@erishforG erishforG added the auto-improvement Daily auto-generated improvement PR/issue label May 26, 2026
@erishforG erishforG merged commit 5bd889a into develop May 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-improvement Daily auto-generated improvement PR/issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant