Skip to content

test: add zsh completion behavior coverage - #2314

Open
m0g3r wants to merge 1 commit into
asdf-vm:masterfrom
m0g3r:test/2042-zsh-completions
Open

test: add zsh completion behavior coverage#2314
m0g3r wants to merge 1 commit into
asdf-vm:masterfrom
m0g3r:test/2042-zsh-completions

Conversation

@m0g3r

@m0g3r m0g3r commented Aug 14, 2026

Copy link
Copy Markdown

Summary

Add behavioral coverage for the embedded Zsh completion script using a real Zsh process. The tests validate representative top-level candidates and the exact plugin subcommand candidates while stubbing only the interactive completion primitives.

Related: #2042

Testing

  • go test -race ./internal/completions -count=1
  • focused completion test repeated 20 times
  • go test ./internal/... -count=1
  • repository-wide compilation with go test ./... -run ^TestZshCompletionCandidates$ -count=1
  • Go vet, gofumpt, revive, and staticcheck for the completions package
  • go build ./...
  • git diff --check

The test skips on hosts without Zsh. The unrestricted repository test suite was not run locally because its legacy integration tests require bats, which is unavailable in this environment; the macOS CI job provides Zsh execution.

Assistance

AI assistance was used during implementation and test analysis.

@m0g3r
m0g3r requested a review from a team as a code owner August 14, 2026 20:38
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