Skip to content

test: merge repetitive near-duplicate tests into table-driven cases - #130

Merged
Ziinc merged 1 commit into
claude/rust-test-cross-file-dedupfrom
claude/rust-test-table-driven-merges
Jul 30, 2026
Merged

test: merge repetitive near-duplicate tests into table-driven cases#130
Ziinc merged 1 commit into
claude/rust-test-cross-file-dedupfrom
claude/rust-test-table-driven-merges

Conversation

@Ziinc

@Ziinc Ziinc commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Phase 4 of the Rust test-suite cleanup (stacked on #128). Consolidates clusters of near-identical tests that differed only in setup inputs and expected outcomes into single table-driven tests, preserving every original assertion:

  • src-tauri/tests/core_repo_test.rs: test_repo_status_with_remote_{in_sync,ahead,behind}test_repo_status_remote_sync_variants
  • src-tauri/tests/core_workspaces_test.rs: merge/squash-with-empty-commits variants consolidated
  • src-tauri/tests/pty_tests.rs: line-filtering/ANSI-stripping case clusters consolidated
    Each case is tagged with a descriptive name so a failure still points at exactly which scenario broke.

Test plan

  • cargo test — full workspace suite passes, 0 failures
    Generated by Claude Code

Several clusters of tests differed only in setup inputs and expected
outcomes (remote sync status variants, merge/squash-with-empty-commits
variants, PTY line-filtering/ANSI-stripping cases). Consolidating them
into single parameterized tests keeps all original assertions while
cutting repetitive boilerplate.
@Ziinc
Ziinc merged commit 7a7c807 into claude/rust-test-cross-file-dedup Jul 30, 2026
4 checks passed
@Ziinc
Ziinc deleted the claude/rust-test-table-driven-merges branch July 30, 2026 02:46
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