Strict output expectations
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- rust
- 领域
- cli, testing-qa
调研方向
从 issue 中显示的 p.exp_string 调用开始,并重现报告中链接的 rustyline 示例。检查 rexpect 如何匹配进程输出以及如何处理 ANSI 转义序列。完成的标准是:缺少某个转义序列(例如 \x1b[?2004h)会导致 expectation test 失败。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 391
- 派生
- 69
- 平均合并
- 1 天 34 分钟
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-cli/rexpect 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 20/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
TheLarkInn/aipm#2413 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
难度 2/5 1-3 小时 新手友好度 75/100
-
todo:ticket
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
taikoxyz/taiko-mono#22168 · 1 条评论 ·