Skip to content

test: add missing tests for get_filenames_in_commit with git_reference#1883

Draft
toroleapinc wants to merge 1 commit intocommitizen-tools:masterfrom
toroleapinc:test/issue-1860-get-filenames-git-reference
Draft

test: add missing tests for get_filenames_in_commit with git_reference#1883
toroleapinc wants to merge 1 commit intocommitizen-tools:masterfrom
toroleapinc:test/issue-1860-get-filenames-git-reference

Conversation

@toroleapinc
Copy link

Summary

Add test coverage for get_filenames_in_commit() when called with an explicit git_reference parameter. Previously only the error case (no reference) and an integration test existed.

New tests

  • test_get_filenames_in_commit: success case without git_reference
  • test_get_filenames_in_commit_with_git_reference: success case with explicit reference, verifying the correct git command is constructed
  • test_get_filenames_in_commit_error_with_git_reference: error case with explicit reference

Closes #1860

Add test coverage for get_filenames_in_commit() when called with an
explicit git_reference parameter. Previously only the error case and
the integration test (no git_reference) existed.

New tests:
- test_get_filenames_in_commit: success case without git_reference
- test_get_filenames_in_commit_with_git_reference: success case with
  explicit reference, verifying the correct git command is called
- test_get_filenames_in_commit_error_with_git_reference: error case
  with explicit reference

Closes commitizen-tools#1860

Signed-off-by: edvatar <[email protected]>
@codecov
Copy link

codecov bot commented Feb 27, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@bearomorphism
Copy link
Collaborator

Please answer the questions in PR description template and please fix the pipeline failure

@bearomorphism
Copy link
Collaborator

And we already assigned #1860 to another contributor. You should comment on the issue and ask if you can take the issue first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing test for get_filenames_in_commit with git_reference

2 participants