Learn about the TestDriver CLI, its commands, and how to use it effectively.
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 |
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.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.