Skip to content

Conversation

@jikongabc
Copy link

What

Add error-path tests for the init command, covering:

  • repository path is a file
  • parent directory is not writable
  • --bare init on an existing repository

Why

These cases previously lacked coverage and could regress silently.
Adding explicit tests ensures init fails with clear and expected errors.

How

Implemented integration tests in tests/command/init_test.rs
following existing test patterns and using serial execution where required.

@jikongabc jikongabc closed this Jan 18, 2026
@jikongabc jikongabc deleted the feat/tests/init-error-cases branch January 18, 2026 07:23
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