-
Notifications
You must be signed in to change notification settings - Fork 18
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
Testing interactive programs #101
Comments
Sounds like there are two requests here, TTY support so it can work with Could you split these out into separate issues? |
I split off the request about |
To give some more details about the So some sort of TTY or PTY seems to be definitely required for this, and likely for other interactive CLI apps too, as it needs some way to access advanced terminal features, rather than just stdin/stdout. |
https://docs.rs/portable-pty/0.7.0/portable_pty/ might be useful for this |
Thanks for this awesome library, it looks really awesome.
I was wondering if there is some support or setting that'd allow testing a binary that expects inputs from the user on the terminal.
Currently, I tried setting that up by using the
*.toml
format and providing a*.stdin
file.That unfortunately doesn't seem to work, as I get the error
Failed to initialize input reader
from the library I use (inquire). So it seems it needs some kind of proper TTY/PTY to function properly.All the other features look really great, as my project is a code generator for new projects, and I want to verify that the generation works, where the
*.out
features is extremely convenient for verification.The text was updated successfully, but these errors were encountered: