test: merge repetitive near-duplicate tests into table-driven cases - #130
Merged
Ziinc merged 1 commit intoJul 30, 2026
Merged
Conversation
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.
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.
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_variantssrc-tauri/tests/core_workspaces_test.rs: merge/squash-with-empty-commits variants consolidatedsrc-tauri/tests/pty_tests.rs: line-filtering/ANSI-stripping case clusters consolidatedEach case is tagged with a descriptive
nameso a failure still points at exactly which scenario broke.Test plan
cargo test— full workspace suite passes, 0 failuresGenerated by Claude Code