Skip to content

test(complete/bash): Add static vs dynamic gap analysis#6267

Draft
AndreasBackx wants to merge 1 commit intoclap-rs:masterfrom
AndreasBackx:feat/bash-completion-gaps
Draft

test(complete/bash): Add static vs dynamic gap analysis#6267
AndreasBackx wants to merge 1 commit intoclap-rs:masterfrom
AndreasBackx:feat/bash-completion-gaps

Conversation

@AndreasBackx
Copy link
Contributor

This PR was generated with the assistance of an AI agent and reviewed by me.

Summary

Adds systematic side-by-side tests comparing static (AOT) and dynamic completion output for Bash. These are the final gate before stabilization — they document where dynamic completions match or diverge from static ones.

Part of #3916

Changes

  • clap_complete/tests/testsuite/bash.rs: New gap_analysis module with 8 test scenarios top-level subcommands, nested subcommands, long options, option values (= and space-separated), filtered values, empty subcommand, special characters, and aliases.

Test Plan

  • cargo test -p clap_complete --features unstable-dynamic — all tests pass
  • Gap analysis tests require unstable-shell-tests feature and Bash installed

Add systematic comparison tests between static (AOT) and dynamic
completion output for Bash. Each test sends the same input to both
runtimes and documents the expected output, making gaps between the
two visible for review before stabilization.

Scenarios covered:
- Top-level subcommands
- Nested subcommands
- Long options
- Option values with = and space-separated
- Filtered option values
- Empty subcommand
- Special character handling
- Aliases

Part of clap-rs#3916
@AndreasBackx AndreasBackx marked this pull request as draft February 13, 2026 03:04
@epage
Copy link
Member

epage commented Feb 13, 2026

See also #6270

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.

2 participants