Skip to content

test: add integration tests for repair and config init#15

Merged
raisedadead merged 4 commits intomainfrom
fix/critical-tests
Feb 5, 2026
Merged

test: add integration tests for repair and config init#15
raisedadead merged 4 commits intomainfrom
fix/critical-tests

Conversation

@raisedadead
Copy link
Copy Markdown
Owner

Summary

Add missing integration tests for repair and config init commands.

Changes

  • test/integration/repair_test.go: New file with 4 test cases
  • test/integration/config_test.go: Added 4 test cases for config init

Tests Added

  • TestRepair/no_op_when_not_needed
  • TestRepair/works_from_any_worktree
  • TestRepair/fails_outside_project
  • TestRepairJSON
  • TestConfigInit/creates_local_config
  • TestConfigInit/fails_if_exists
  • TestConfigInit/force_overwrites
  • TestConfigInitJSON

Test plan

  • go test ./test/integration/... -run TestRepair passes
  • go test ./test/integration/... -run TestConfigInit passes
  • Full test suite passes

🤖 Generated with Claude Code

@raisedadead raisedadead merged commit f2e5c8d into main Feb 5, 2026
3 checks passed
@raisedadead raisedadead deleted the fix/critical-tests branch February 5, 2026 14:43
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