New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better unit tests for bash/zsh completion scripts #906
Comments
Work is in progress to create a test suite for interactive tests using the DejaGnu test framework (see also the DejaGnu wikipedia page). DejaGnu is based on Expect (see also the Expect wikipedia page and the Expect man page. Expect in turn is written in TCL. I will be borrowing quite a lot of code from the bash-completion project, even though that project has started to move its testing to pexpect (a python-based implementation of expect) for unknown reasons. |
The current unit tests for
AutoCompletion
test by asserting that the generated script equals some pre-defined script; they don't verify that completion actually works in bash or zsh.Ideally, the tests would verify that a generated completion script actually generates the expected completion candidates, given some partial input.
Useful links:
(Related to #894 but different)
The text was updated successfully, but these errors were encountered: