Skip to content

Refactor duplicated validation and waitFor parsing logic in test command #357

@Syedowais312

Description

@Syedowais312

Reason/Context

The test command currently contains duplicated logic for:

  • argument validation
  • --waitFor parsing
  • repeated error messages

This makes the command harder to maintain and extend.

Description

I would like to refactor this by extracting reusable helper functions for validation and wait time parsing, while keeping the existing behavior unchanged.

Planned changes:

  • extract argument validation into helper function
  • extract waitFor parsing into reusable helper
  • centralize duplicated error strings into constants
  • simplify the command flow and improve readability

Implementation ideas

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions