Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify CLI run-plan command #65

Open
ChrisC opened this issue Aug 14, 2024 · 1 comment
Open

Simplify CLI run-plan command #65

ChrisC opened this issue Aug 14, 2024 · 1 comment

Comments

@ChrisC
Copy link
Contributor

ChrisC commented Aug 14, 2024

The CLI command to run test plans could be simplified. Some suggestions:

  • Remove or simplify the globbing pattern for identifying tests to run (we do still want to be able to run individual plans or tests however)
  • Add defaults for driver urls and reference host (since these rarely change)
  • Add defaults for working directory

A really simplified command to run a plan could possibly look like:

node /bin/host.js run-plan --test-plan=horizontal-slider --at=voiceover --browser=safari 

I'm wondering if the read-plan command is ever used? If not, perhaps that command can just be removed?

@jugglinmike
Copy link
Contributor

I'm not aware of any use-cases for read-plan, so removing it sounds like a good idea to me!

When it comes to the --test-plan argument, the extra verbosity of a filesystem path may be warranted. It's easier to understand, and it allows folks to use their shell's autocompletion functionality to avoid typos (e.g. typing ar[TAB]/b[TAB]t[TAB]h[TAB] versus horizontal-slider).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants