Cover the CLI's run and output paths
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
Research direction
Start in cli.rkt and find the existing “resyntax fix modifies files” test to follow its command-line, output-port, and temporary-file setup. Add coverage for the listed run, analyze, and fix output paths, including the related branches in refactoring-result.rkt and main.rkt, then run the CLI test suite and confirm the missed paths are exercised.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Racket
- Stars
- 70
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
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.
More from jackfirth/resyntax
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
testing
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
testing
Difficulty 3/5 1-2 days Newbie friendliness 75/100
-
new lint
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in jackfirth/resyntax
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vercel-labs/skills#2291 ·
-
setup tools wizard offers no GitHub auth path, and setup summary doesn't recognize `gh` CLI auth Openarea/auth comp/cli P3 tool/skills type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#121131 ·