Test the interactive CLI in a pseudo-terminal #58
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener#58
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude: Tests run
cli.tsin a pseudo-terminal, so the interactive menu, the resume prompt and Ctrl-C are covered, not only checked by hand.From the M2 retro (#50). The Ctrl-C bug fixed in #55 (Ctrl-C during a progress bar never stopped the CLI) lived from #48 through all of M2, because no test sends a signal or drives the menu. In #15 I checked the menu hints and the resume prompt by hand, in a pseudo-terminal. Bun's
Bun.spawnhas aterminaloption for this, so no new package is needed.Acceptance criteria
Proposed. To be agreed in backlog refinement.
cli.tsin a pseudo-terminal against a temporary database and fixture data, with no network access (SEC and Yahoo faked), sends keystrokes, and reads the screen output.jobs, and choosing steps runs them in pipeline order.jobs, the CLI asks whether to resume or start over, and each answer does what it says.interrupted.bun testand finish in a few seconds.Definition of Done
bun testpasses; new logic has testsbun checkis clean andbun fmt --checkpassesCloses #<this issue>