Learn about the TestDriver CLI, its commands, and how to use it effectively.
The testdriverai
CLI is the primary interface for running, managing, and debugging TestDriver scripts. It provides commands to execute tests, validate configurations, and interact with the TestDriver framework.
Command | Description |
---|---|
run | Executes a TestDriver script. |
validate | Validates the syntax and structure of a TestDriver script. |
init | Initializes a new TestDriver project in the current directory. |
version | Displays the current version of the TestDriver CLI. |
help | Displays help information for the CLI or a specific command. |
Command | Description |
---|---|
--heal | Launch exploratory mode and attemp to recover if an error or failing state is encountered. |
--skip-prerun | Do not automatically run lifecycle/prerun.yaml |
This command runs the specified TestDriver script, executing all steps defined in the file.
This command checks the syntax and structure of the script to ensure it’s valid before execution.
This command sets up a new TestDriver project in the current directory, creating the necessary folder structure and configuration files.
This command displays the installed version of the TestDriver CLI.
This command displays general help information. To get help for a specific command, use:
validate
before running a script to catch errors early.run
with CI/CD pipelines to automate test execution.--debug
flag with run
to enable detailed logging for troubleshooting.Running init
will create a blank testdriver.yaml
file in the current
directory. You can then edit this file to define your test steps.
testdriverai
CLI is cross-platform and works on macOS, Windows, and Linux.Learn about the TestDriver CLI, its commands, and how to use it effectively.
The testdriverai
CLI is the primary interface for running, managing, and debugging TestDriver scripts. It provides commands to execute tests, validate configurations, and interact with the TestDriver framework.
Command | Description |
---|---|
run | Executes a TestDriver script. |
validate | Validates the syntax and structure of a TestDriver script. |
init | Initializes a new TestDriver project in the current directory. |
version | Displays the current version of the TestDriver CLI. |
help | Displays help information for the CLI or a specific command. |
Command | Description |
---|---|
--heal | Launch exploratory mode and attemp to recover if an error or failing state is encountered. |
--skip-prerun | Do not automatically run lifecycle/prerun.yaml |
This command runs the specified TestDriver script, executing all steps defined in the file.
This command checks the syntax and structure of the script to ensure it’s valid before execution.
This command sets up a new TestDriver project in the current directory, creating the necessary folder structure and configuration files.
This command displays the installed version of the TestDriver CLI.
This command displays general help information. To get help for a specific command, use:
validate
before running a script to catch errors early.run
with CI/CD pipelines to automate test execution.--debug
flag with run
to enable detailed logging for troubleshooting.Running init
will create a blank testdriver.yaml
file in the current
directory. You can then edit this file to define your test steps.
testdriverai
CLI is cross-platform and works on macOS, Windows, and Linux.