Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

testdriver:options

БесплатноБез исполняемых скриптовНе проверен

Every option you can pass to the TestDriver client, with defaults and examples

testdriveraiот testdriverai★ 342 звезды на GitHub

Об этом скилле

Overview

You configure the SDK with an options object. You can pass the object in three places:

// 1. Vitest hook (most common)
const testdriver = TestDriver(context, { os: "windows" });

// 2. Constructor
const testdriver = new TestDriver(apiKey, { os: "windows" });

// 3. Global plugin options in vitest.config.mjs
testdriver({ os: "windows" })

The hook merges the options in this order. A later source replaces an earlier source:

  1. Default values
  2. Environment variables (TD_OS, TD_API_ROOT, TD_E2B_TEMPLATE_ID)
  3. Global plugin options
  4. Options that you pass to the hook or the constructor

Options that you pass to connect() replace the constructor values for that connection only.

Sandbox

These options control the virtual machine that runs your test.

The operating system of the sandbox. You can also set this with the `TD_OS` environment variable. The screen resolution of the sandbox. Example: `'1920x1080'`. Custom resolutions are available only on Enterprise plans. Create a new sandbox for this run. Set to `false` to reuse a recent sandbox when one is available. Reattach to the last used sandbox. The SDK reads the sandbox id from `.testdriver/last-sandbox`. The SDK writes this file on every successful connect.

When reconnect is true, the SDK skips provision methods (chrome, vscode, installer, and others). The application is already running. The previous sandbox must still be alive. See keepAlive and the Run guide.

Reattach to a specific sandbox id. Use this for CI matrices or to pin a chain of tests to a known VM. This option implies `reconnect: true`. The SDK skips provision calls. The number of milliseconds to keep the sandbox alive after `disconnect()`. Set to `0` to end the sandbox at once. A longer value lets you reconnect to the same sandbox for debugging. Keep the sandbox alive when a test fails. The SDK prints the sandbox id to the console. You can then reconnect with `sandboxId` and debug the failure. This option is available only in the Vitest hook. Additional environment variables to pass to the sandbox.

Example

const testdriver = TestDriver(context, {
  os: "windows",
  resolution: "1920x1080",
  keepAlive: 300000,
  debugOnFailure: true,
});

Preview and recording

These options control what you see while the test runs.

The preview mode for live test visualization.
  • "browser" opens the debugger in your default browser.
  • "ide" opens the preview in the IDE panel. This mode needs the TestDriver extension for VS Code or Cursor.
  • "none" runs without a visual preview. Use this in CI.
**Deprecated.** Use `preview: "none"` instead. `headless: true` maps to `preview: "none"`. Record a Dashcam video of the test. See [Dashcam](/dashcam). Capture a screenshot before and after each command. The SDK saves the screenshots to `.testdriver/screenshots//`.

The file name format is <seq>-<action>-<phase>-L<line>-<description>.png. Example: 001-click-before-L42-submit-button.png. See Debugging with screenshots.

Write SDK logs to the console. You can change this at runtime with [`setLogging()`](/client#setlogging). Send usage analytics to TestDriver.

Example

const testdriver = TestDriver(context, {
  preview: process.env.CI ? "none" : "browser",
  autoScreenshots: true,
});

AI and element location

These options control how the AI locates elements and checks assertions.

Run a second AI check on every `find()` result. The check confirms that the coordinates match the requested element. This catches incorrect positions. It adds latency to each call.

You can replace this value f

Полный SKILL.md на GitHub

Установить testdriver:options в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл testdriver:options?

Every option you can pass to the TestDriver client, with defaults and examples

Как установить скилл testdriver:options?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл testdriver:options запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить testdriver:options с