Strict output expectations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 391
- Forks
- 69
- Avg merge
- 1d 34m
- Merged PRs (30d)
- 2
Description
Hello,
I am trying to use rexpect for testing rustyline.
But it seems that ANSI escape sequences are ignored in the output stream.
For example, I can remove this:
p.exp_string("\x1b[?2004h")?; // bracketed paste on
with no impact on the tests.
But if I replace it with a typo:
p.exp_string("\x1b[?2004x")?; // bracketed paste on
tests now fail.
Is there a way to tell rexpect to fail if an ANSI escape sequence is missing ?
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the p.exp_string calls shown in the issue and reproduce the rustyline example linked in the report. Inspect how rexpect matches process output and handles ANSI escape sequences. Done means a missing escape sequence, such as \x1b[?2004h, causes the expectation test to fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100