Coding · Intermediate
Draft regression tests for existing code
Proposed tests for untested code; only passing ones stay.
- When you askYou name a module
- ThenWrites and runs tests
- ResultDraft change for review
Ask a bot to propose tests for untested functions, run them, and keep only the ones that pass and add coverage. A developer reviews them like any other change.
Prompt to start with
BotBentoRecommended
For the module I name, propose unit tests for functions without coverage. Run them and keep only passing tests that cover new lines. Open a draft change for review.
Muse CodeSetup sketch
Run muse in the project directory, then ask: For the module I name, propose unit tests for functions without coverage. Run them and keep only passing tests that cover new lines.
Muse Code is Meta's terminal and CI coding agent; its docs describe planning, editing and running commands with approvals. Docs