Skip to content

[FEATURE] - Interactive Mode for Test Generation Approval #12

@Ofido

Description

@Ofido

Is your feature request related to a problem?

The current process automatically appends generated tests to files. This is fast, but it gives the user little control over the final output. The user might want to review, edit, or reject a generated test before it's saved.

Describe the solution you'd like

Implement an interactive mode, likely triggered by a flag like --interactive. In this mode, after a test is generated, the tool would:

  1. Display the generated test to the user in the console.
  2. Prompt the user with options, such as:
    • Approve (a): Save the test to the file.
    • Edit (e): Open the generated test in the default text editor ($EDITOR) for manual changes before saving.
    • Reject (r): Discard the test and move to the next one.
    • Quit (q): Exit the process.

This gives the user fine-grained control over the test generation process.

Describe alternatives you've considered

  • A --dry-run mode to see all potential changes at once (less granular control).
  • Requiring the user to manually review files after the run (less convenient).

Additional context

This is from the New Ideas Backlog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions