Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.testdriver.ai/llms.txt

Use this file to discover all available pages before exploring further.

Run tests using previously created test scripts. This command replays the steps defined in the YAML file, performing each action sequentially. You can run a test script by specifying the file path in the terminal or interactively within the TestDriver CLI.

Example in terminal

npx testdriverai@latest run path/to/test.yaml
This will execute the test script located at path/to/test.yaml. If the test passes, the command will exit with a status code of 0. If it fails, the command will exit with a status code of 1.
The path to the test file provided should be relative to the current working directory.

Interactive mode

To run a test interactively:
  1. Launch the TestDriver CLI:
npx testdriverai@latest edit
  1. At the > prompt, type:
> /run path/to/test.yaml

Notes

  • Ensure the YAML file is valid and follows the TestDriver specification.
  • The default file path is testdriver/testdriver.yaml if no file is specified.

Running Tests in CI

Run tests with Hosted Runnings in GitHub Actions