Follow these steps to install and set up TestDriver CLI.
Install Node.js
Ensure you have Node.js (v16 or higher) installed.
Check your Node.js version:
If not installed, download it from Node.js Official Website.
Install NPM
npm: Comes with Node.js. Verify npm
is installed:
Set Up Your Test Runner
In your project directory, run the interactive setup process:
TestDriver requires a runner to execute tests. You can use either a hosted sandbox or your own computer.
Running init
in your project directory and choose “yes” for the sandbox option. This will prompt you for your API key.
This will write the TD_VM
and TD_API_KEY
values to .env
file in your project directory.
Run TestDriver in Interactive Mode
Start TestDriver in interactive mode.
You should see a prompt like this: