AI-powered end-to-end testing with live preview directly in your IDE.
- Live Test Preview: Watch your tests execute in real-time within VSCode
- MCP Integration: Automatic MCP server setup for AI-assisted test creation
- Seamless Workflow: Tests automatically open in a side panel when running
Search for "TestDriver.ai" in the VSCode Extensions marketplace.
- Download the
.vsixfile from releases - In VSCode, press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type "Install from VSIX" and select the downloaded file
- Install this extension
- Get an API key at console.testdriver.ai
- Set your
TD_API_KEYenvironment variable - Install the MCP server via Command Palette: TestDriver: Install MCP Server
- Run a test with
preview: "ide"to see live execution
When running tests with the TestDriver SDK, set the preview option to "ide":
import { TestDriver } from 'testdriverai/lib/vitest/hooks.mjs';
describe('My Test Suite', () => {
it('runs my test', async (context) => {
const testdriver = TestDriver(context, {
preview: 'ide' // Opens live preview in IDE panel
});
await testdriver.provision.chrome({ url: 'https://example.com' });
await testdriver.find('Sign In button').click();
});
});| Value | Description |
|---|---|
"browser" |
Opens debugger in default browser (default) |
"ide" |
Opens debugger in IDE panel (VSCode, Cursor, etc.) |
"none" |
Headless mode, no preview |
The extension can automatically install the TestDriver MCP server for AI-assisted test creation:
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type "TestDriver: Install MCP Server"
- Choose where to save the configuration
Or accept the prompt when the extension first activates.
Note: When installed via this extension, the MCP server automatically uses IDE preview mode (TD_PREVIEW=ide), so the live test execution view opens directly in the IDE panel instead of an external browser.
| Command | Description |
|---|---|
TestDriver: Open Live Preview |
Manually open the preview panel |
TestDriver: Close Live Preview |
Close all preview panels |
TestDriver: Install MCP Server |
Install MCP server configuration |
| Setting | Default | Description |
|---|---|---|
testdriverai.autoOpenPreview |
true |
Auto-open preview when test starts |
testdriverai.mcpServerPath |
"" |
Custom MCP server path |
- VSCode 1.85.0 or later
- TestDriver.ai SDK installed in your project
- Valid TestDriver API key
npm install
npm run compilePress F5 in VSCode to launch the Extension Development Host.
MIT License - see LICENSE file for details.