Testdriver:Running Tests logo

Testdriver:Running Tests

Organization
testdriverai
testdriver:running-tests

Run TestDriver tests with Vitest test runner

Overview

Publishertestdriverai
Repositorytestdriverai
Skill nametestdriver:running-tests
Stars
465
Forks
39
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by testdriverai on GitHub. Read the source before you install it.

Installation

Install the Testdriver:Running Tests AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-running-tests
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/testdriverai/testdriverai.git /tmp/testdriverai
mkdir -p .claude/skills
cp -r /tmp/testdriverai/ai/skills/testdriver-running-tests .claude/skills/testdriverai-testdriver-running-tests
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Testdriver:Running Tests in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Testdriver:Running Tests on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Testdriver:Running Tests is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Learn how to run TestDriver tests efficiently with Vitest's powerful test runner.

Running Tests

TestDriver works with Vitest's powerful test runner.

Run All Tests

bash
vitest run

Executes all test files in your project once and exits. Vitest automatically discovers files matching patterns like *.test.js, *.test.mjs, or *.spec.js.

Run with Coverage

bash
vitest run --coverage

Generates a code coverage report showing which lines of your source code were executed during tests. Coverage helps identify untested code paths. Results are displayed in the terminal and saved to a coverage/ directory.

Run Specific Tests

bash
vitest run login.test.js

Runs only the specified test file. Useful when debugging a single test or working on a specific feature.

bash
vitest run login.test.js checkout.test.js

Runs multiple specific test files. List as many files as needed, separated by spaces.

Filter Tests by Name

bash
vitest run --grep "login"

The --grep flag filters tests by their name (the string passed to it() or test()). Only tests whose names match the pattern will run. Supports regex patterns for complex matching.

Run Tests in a Folder

bash
vitest run tests/e2e/

Runs all test files within a specific directory. Great for organizing tests by type (unit, integration, e2e) and running them separately.

Parallel Execution

TestDriver runs each test in its own cloud sandbox, enabling true parallel execution. Run your entire test suite in minutes instead of hours.

Control Concurrency

bash
vitest run --maxConcurrency=5

The --maxConcurrency flag limits how many tests run simultaneously. This should match your TestDriver license slots to avoid failures from exhausted slots.

Thread Configuration

bash
vitest run --pool=threads --minThreads=2 --maxThreads=8

Fine-tune thread allocation for optimal performance:

  • --pool=threads — Uses worker threads for test isolation
  • --minThreads — Minimum number of threads to keep alive (reduces startup overhead)
  • --maxThreads — Maximum threads to spawn (limits resource usage)

License Slots

Your TestDriver plan includes a set number of license slots that determine how many tests can run simultaneously. Each running test occupies one slot—when the test completes and the sandbox is destroyed, the slot is immediately available for the next test.

Configuring Concurrency

Set maxConcurrency in your Vitest config to match your license slot limit:

javascript
import { defineConfig } from 'vitest/config';
import TestDriver from 'testdriverai/vitest';

export default defineConfig({
  test: {
    testTimeout: 900000,
    hookTimeout: 900000,
    maxConcurrency: 5, // Match your license slot limit
    reporters: ['default', TestDriver()],
    setupFiles: ['testdriverai/vitest/setup'],
  },
});

Why Parallelization Matters

Test SuiteSequential (1 slot)Parallel (5 slots)Parallel (10 slots)
10 tests @ 2min each20 min4 min2 min
50 tests @ 2min each100 min20 min10 min
100 tests @ 2min each200 min40 min20 min

<Card title="View Plans & Pricing" icon="credit-card" href="/v7/hosted"

Compare plans and find the right level of parallelization for your team.

Vitest UI

Use Vitest UI for interactive debugging:

bash
vitest --ui

The --ui flag launches a web-based interface for managing your test suite. Unlike vitest run, this starts in watch mode by default.

Open http://localhost:51204 to see:

  • Test file tree — Browse and navigate your test structure
  • Test status and duration — See pass/fail states and timing at a glance
  • Console output — View logs and errors inline with each test
  • Re-run individual tests — Click to re-execute specific tests without restarting
  • Filter and search — Quickly find tests by name or status

Test Reports

After running tests, view detailed reports and video replays at console.testdriver.ai.

Reports include:

  • Video replays - Watch exactly what happened during each test
  • Screenshots - See the state at each step
  • Timing breakdown - Identify slow operations
  • Error details - Debug failures with full context
bash
$ vitest run

 ✓ login.test.js (2) 18.4s
   ✓ user can login 12.3s
   ✓ shows error for invalid credentials 6.1s

📹 View reports at: https://console.testdriver.ai

Frequently asked questions

What does the Testdriver:Running Tests AI skill do?

Run TestDriver tests with Vitest test runner

Why use Testdriver:Running Tests on TypingMind?

Because you install it once and use it with any model. Testdriver:Running Tests is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Testdriver:Running Tests in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-running-tests. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Testdriver:Running Tests?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Testdriver:Running Tests?

As many as you like. As long as a model supports skills, you can use Testdriver:Running Tests with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Testdriver:Running Tests AI skill free?

It is published on GitHub by testdriverai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇