SkillsReviewed · testdriverai

TestDriver Exec

TestDriver Exec is a skill for developers running commands in TestDriver’s Linux or Windows sandboxes, but it requires a configured TestDriver connection and its complete example needs correction. It documents shell and PowerShell execution with explicit timeouts, optional output suppression and a promised string result.

Researched 16 Nov 2026

In short.

TestDriver Exec is a command-execution skill for developers using TestDriver sandboxes, but its complete example assigns the TestDriver instance to client instead of the declared testdriver variable. It documents file operations, software installation, process management and environment setup through a JavaScript API. Pricing, licence terms and detailed execution guarantees are unknown from the available source. No commands or examples were executed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is ai/skills/testdriver-exec and its files, including licence notices beside and above it. The supplied material contains only ai/skills/testdriver-exec/SKILL.md at revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2; no related licence notices are supplied. The wider SDK implementation, generated source exec.mdx and linked method documentation are outside the available evidence. No commands were executed, so runtime behavior, compatibility, isolation and performance remain unassessed.

The overview

Identity

The resource is ai/skills/testdriver-exec/SKILL.md in testdriverai/testdriverai. Its declared name is testdriver:exec, and its description covers shell or PowerShell commands in a sandbox. The file identifies itself as generated from exec.mdx.

The selected material provides usage instructions for testdriver.exec. The execution engine and wider TestDriver SDK implementation are outside the supplied material.

Assessment

This skill is useful when a TestDriver workflow needs operating-system preparation alongside application interaction: creating fixtures, installing tools, launching processes or checking a local port. Its examples make the intended tasks concrete.

Adoption requires additional setup information and correction of the complete example. The documentation alone does not establish reliability, isolation strength or compatibility with a particular SDK release.

Users

The clearest audience is developers and test-automation engineers already using TestDriver who need to prepare or inspect a sandbox programmatically. Beginners receive examples of common commands, while experienced developers get the API signature and lifecycle context.

Users still need JavaScript asynchronous programming knowledge and familiarity with the relevant shell. The skill does not explain shell fundamentals or provide a complete introduction to TestDriver.

Capabilities

Linux examples cover listing directories, running a setup script and creating, reading, copying or deleting files. Windows examples add npm and Chocolatey installations, installer downloads, process management, environment variables, connectivity checks and port checks.

An optional silent argument suppresses displayed output. The Windows walkthrough combines installing an HTTP server, writing an HTML file, starting the server, opening Chrome and focusing its window. These are documented recipes, not verified outcomes.

Using it

Requirements

The complete example assumes a JavaScript environment with the testdriverai package, an API key supplied through TD_API_KEY, and a TestDriver instance that can authenticate and connect. It uses Vitest hooks and tests.

Commands must match the sandbox platform: sh for Linux or pwsh for Windows. Individual recipes also depend on tools such as npm, Chocolatey or Chrome being available where used. Supported runtime versions, account requirements, installation privileges and sandbox provisioning steps are unspecified.

Mechanism

Calls use await testdriver.exec(language, code, timeout, silent). The required language and code arguments are strings; timeout is a required number in milliseconds. Silent is optional and defaults to false.

The documented return type is Promise<string>, described as command output. The file does not define output encoding, separate standard-error handling, exit-code reporting or what happens to child processes when a timeout expires. Suppressing displayed output does not establish whether output is retained elsewhere.

Setup

The intended lifecycle is to create a TestDriver instance with TD_API_KEY, call auth(), call connect(), execute commands and eventually call disconnect(). The example places connection setup in beforeAll and disconnection in afterAll.

Correct the constructor assignment to use the declared testdriver variable before following that lifecycle. Also establish how Vitest supplies expect. The file does not provide an SDK installation command or explain how to choose or provision the sandbox operating system.

Example

The documented Linux call const files = await testdriver.exec('sh', 'ls -la', 5000); requests a directory listing with a five-second timeout and assigns the returned string to files.

The corresponding Windows process-listing example uses await testdriver.exec('pwsh', 'Get-Process', 5000). These examples illustrate the platform argument and timeout units; actual output and successful execution are not established.

Assessment & evidence

Limitations

The complete example declares let testdriver but assigns the constructed instance to client. It subsequently calls testdriver.auth(), leaving testdriver unassigned as written. It also uses expect without importing it; whether that works depends on Vitest global configuration, which is not shown. These are findings from reading the source, not observed runtime failures.

The documentation does not establish nonzero-exit behavior, output limits, timeout cancellation, cross-call environment persistence or sandbox isolation boundaries. Its suggested timeout ranges are guidance, not measured completion times.

Reasoning

The practical value is keeping command-based preparation within the same TestDriver session as application automation. For example, the Windows walkthrough prepares a local web page before opening it in a browser.

A reasonable fit therefore depends on needing TestDriver integration. The source offers enough detail to understand the API, but the defective setup example and unspecified failure behavior prevent treating it as a complete operational reference.

Alternatives

The file points to focusApplication() for focusing an application, find() for locating elements visually and type() for entering text. These are relevant choices when the task concerns application interaction; they complement command execution.

For command-only work, running shell or PowerShell scripts directly is an architectural alternative to consider. The source provides no comparison with other execution tools, so relative cost, speed and isolation are not assessed.

Evidence

The available evidence is the complete SKILL.md at revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2: [https://raw.githubusercontent.com/testdriverai/testdriverai/97d4d35d7727b2f83b1a73282aabf2e6e74824a2/ai/skills/testdriver-exec/SKILL.md]. The original folder address is [https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-exec].

The captured file is 7,517 bytes with SHA-256 e432c58a8dd240290f1c61dde5e68ec0d2e05d3753d9cb8e8ec6b0fc0b6d924d. It supplies API documentation and examples, without runtime results, benchmarks or implementation evidence.

Access & freshness

Costs

The source gives no price for the skill, TestDriver access, sandbox runtime or API usage. Free allowances, billing units and account limits are unknown. The package-installation examples do not establish total operating cost.

Rights

The supplied SKILL.md contains no licence grant. No licence notices beside or above the skill folder are included in the available material, so permission to copy, modify or redistribute the skill is unknown. This does not establish whether the wider repository has a licence.

Freshness

The source snapshot was captured on 16 November 2026 at 15:20:24.588 UTC and is pinned to a Git commit. That identifies the documented content precisely but does not establish its publication date or a compatible SDK version.

Current upstream changes, release compatibility and maintenance history are unknown. The referenced exec.mdx source is not included in the available material.

Actions

Before adopting the skill, obtain TestDriver setup and billing details and the applicable licence terms. Correct the client-variable assignment and confirm the Vitest assertion configuration.

Begin validation with a read-only command on the intended sandbox platform. Then establish how failed commands, timeouts, silent output and environment changes behave before relying on the installation or background-process recipes. These checks remain unperformed.

Evidence for this report

ai/skills/testdriver-exec/SKILL.mdselected · checked 2026-11-16