You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split off from #101 and would likely need it to be implemented first, to be of real use.
It would be really cool, to have some custom format for the stdin/stdout content, that allows for similar patterns as in pecpect (or rather the rexpect/expectrl crates). This would allow to easily test interactive programs.
What quickly comes to mind would be something like:
> What is your name?
< Bob
> Alive? [Yn]
< y
...
Where > defines some stdout from the program that is checked against, as either plain text or maybe regex.
And < would describe the input to be passed to the program if the previous check succeeded. Maybe would need some nice helpers to send arrow up/down, return and other special keys and control sequences.
The text was updated successfully, but these errors were encountered:
Split off from #101 and would likely need it to be implemented first, to be of real use.
It would be really cool, to have some custom format for the
stdin
/stdout
content, that allows for similar patterns as in pecpect (or rather therexpect
/expectrl
crates). This would allow to easily test interactive programs.What quickly comes to mind would be something like:
Where
>
defines some stdout from the program that is checked against, as either plain text or maybe regex.And
<
would describe the input to be passed to the program if the previous check succeeded. Maybe would need some nice helpers to send arrow up/down, return and other special keys and control sequences.The text was updated successfully, but these errors were encountered: