Skip to content

test: improve interactive shell completion coverage#54

Merged
timvw merged 1 commit intomainfrom
debug/zsh-completion-repro
Feb 28, 2026
Merged

test: improve interactive shell completion coverage#54
timvw merged 1 commit intomainfrom
debug/zsh-completion-repro

Conversation

@timvw
Copy link
Owner

@timvw timvw commented Feb 28, 2026

Summary

  • add positive interactive completion tests for zsh and bash covering command, branch, and config subcommand completion flows
  • add Windows-only PowerShell completion tests using CommandCompletion API for command, branch, and config-subcommand cases
  • reduce interactive test flakiness and runtime by removing premature output-stability aborts in wait logic and building the wt test binary once per run

Validation

  • go test ./...
  • go test ./... -run 'TestZshTabCompletion|TestBashTabCompletion|TestPowerShellCompletion' -v

@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.38%. Comparing base (661d0f9) to head (15ae000).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   27.25%   27.38%   +0.12%     
==========================================
  Files           4        4              
  Lines        1574     1574              
==========================================
+ Hits          429      431       +2     
+ Misses       1095     1094       -1     
+ Partials       50       49       -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timvw timvw merged commit b286fb5 into main Feb 28, 2026
11 checks passed
@timvw timvw deleted the debug/zsh-completion-repro branch February 28, 2026 21: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