Skip to content

test(compare): add E2E tests for git baseline comparison#143

Merged
AmiteK23 merged 2 commits intomainfrom
test/e2e-git-baseline-compare
Mar 10, 2026
Merged

test(compare): add E2E tests for git baseline comparison#143
AmiteK23 merged 2 commits intomainfrom
test/e2e-git-baseline-compare

Conversation

@AmiteK23
Copy link
Copy Markdown
Member

@AmiteK23 AmiteK23 commented Mar 10, 2026

Description

Add end-to-end tests for the --baseline git:<ref> comparison feature.

Validates comparisons against branches, tags, commit hashes, and relative refs using real git repositories.
Also verifies worktree cleanup and error handling.


Type of Change

  • Bug fix
  • Feature
  • Breaking change
  • Docs
  • Refactor
  • CI / Tests
  • Performance
  • Other (please describe):

Architectural Impact

  • No contract/output changes
  • Contract/output changed (describe below)

Testing

  • Tested locally
  • Tests added/updated
  • All tests pass

New E2E tests cover:

  • Git baseline comparison using branches, tags, commit hashes, and relative refs
  • Drift detection after structural changes
  • Git-ignored file filtering
  • Error handling (invalid refs, non-git repositories)
  • Cleanup verification for temporary git worktrees

Related Issues

None.


Checklist

  • Target branch is main
  • Self-reviewed
  • Docs updated (if needed)
  • Changelog updated (if needed)

Additional Notes

These tests use temporary git repositories created during the test run to simulate real comparison scenarios and validate the full CLI workflow.

@AmiteK23 AmiteK23 merged commit c5a2d54 into main Mar 10, 2026
7 checks passed
@AmiteK23 AmiteK23 deleted the test/e2e-git-baseline-compare branch March 11, 2026 17:12
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.

1 participant