Cover the CLI's run and output paths
还没有人认领这个 Issue。
评估
调研方向
从 cli.rkt 开始,找到现有的 “resyntax fix modifies files” 测试,并参照其命令行、输出端口和临时文件设置。为列出的 run、analyze 和 fix 输出路径添加覆盖,包括 refactoring-result.rkt 和 main.rkt 中相关的分支,然后运行 CLI 测试套件并确认遗漏的路径已得到执行。
由索引模型根据 Issue 内容生成。
描述
Follow-up to #724: the argument parsers are tested now, but cli.rkt is still at 68.6% coverage (114 missed lines) because none of the run functions are. Untested: the resyntax-run command dispatch, all of resyntax-analyze-run including the plain-text display and --output-to-file, and the fix output printers (--output-as-commit-message, --output-as-json, and most of the plain-text summary).
The existing "resyntax fix modifies files" test shows the pattern to follow: parameterize current-command-line-arguments and current-output-port, run against a temp file, and assert on the captured output. An analyze equivalent would also transitively cover the untested code snippet accessors in refactoring-result.rkt (#815) and several untested limiting branches in main.rkt.
Part of #680.
- 主要语言
- Racket
- 星标
- 70
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jackfirth/resyntax 的其他 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 4/5 3-5 天 新手友好度 45/100
-
testing
难度 4/5 3-5 天 新手友好度 45/100
-
testing
难度 3/5 1-2 天 新手友好度 75/100
-
new lint
难度 3/5 1-2 天 新手友好度 55/100
查看 jackfirth/resyntax 的全部 Issue
相似的 Issue
-
OpenCode install copies the Pi harness directory (`.pi/`) into the OpenCode config root可能已有人在做 @gaurav0107 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
bgreenwell/xleak#90 · 1 个 reaction ·
-
bug difficulty:2 good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
MakazhanAlpamys/Soup#1865 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 72/100
ValveSoftware/SteamOS#2927 ·