redhat-developer / vscode-extension-tester

ExTester: Your Essential UI Testing Companion for Visual Studio Code Extensions! Seamlessly execute UI tests with Selenium WebDriver, ensuring robustness and reliability in your extension development journey. Simplify UI testing for your VS Code extensions and elevate the quality of your user interface effortlessly.
Apache License 2.0
244 stars 67 forks source link

[🚀 Request] Provide an interactive CLI as option for extest binary #1280

Open djelinek opened 2 months ago

djelinek commented 2 months ago

Describe the request

investigate possibility of inquirer

Usage

easiest way of building full extest command with options

djelinek commented 2 months ago
➜  vscode-extension-tester (main) node_modules/.bin/extest --help
Usage: extest [options] [command]

UI Test Runner for VS Code Extension

Options:
  -V, --version                                     output the version number
  -h, --help                                        display help for command

Commands:
  get-vscode [options]                              Download VS Code for testing
  get-chromedriver [options]                        Download ChromeDriver binary
  install-vsix [options]                            Install extension from vsix file into test instance of VS Code
  install-from-marketplace [options] <id> [ids...]  Install extension from marketplace with given <id> into test instance of VS Code
  setup-tests [options]                             Set up all necessary requirements for tests to run
  run-tests [options] <testFiles...>                Run the test files specified by glob pattern(s)
  setup-and-run [options] <testFiles...>            Perform all setup and run tests specified by glob pattern(s)
  help [command]                                    display help for command

and then each command has his options, rg. get-vscode

➜  vscode-extension-tester (main) node_modules/.bin/extest get-vscode --help
Usage: extest get-vscode [options]

Download VS Code for testing

Options:
  -s, --storage <storage>       Use this folder for all test resources
  -c, --code_version <version>  Version of VS Code to download, use `min`/`max` to download the oldest/latest VS Code supported by ExTester
  -t, --type <type>             Type of VS Code release (stable/insider)
  -h, --help                    display help for command