Repository navigation
test(): add bats tests and shellcheck, run on pull requests - #14
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…checkout Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Adds an automated test suite for
gitrid.shand runs it in CI.tests/gitrid.bats: 35 bats tests. They build a throwaway repo (a bare remote and a working clone) with merged, unmerged, never-pushed and upstream-gone branches, then check what each option lists, what it deletes and the exit codes (0, 1, 2, 3). Also checks thatllms.txtnames the same version as the script..github/workflows/tests.yml: runs the tests on Ubuntu and macOS, and ShellCheck on the shell scripts, on every pull request and on pushes tomain.setup_gitbash.sh: quotes thecparguments (the one ShellCheck finding).README.md: a short Tests section.Run locally with
npx bats tests.The suite passes locally on Windows Git Bash. The macOS job has not been run before this PR.
🤖 Generated with Claude Code