testdriver:running-tests
БесплатноБез исполняемых скриптовНе проверенRun TestDriver tests with Vitest test runner
от testdriverai★ 342 звезды на GitHubОб этом скилле
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
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
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
vitest run login.test.js
Runs only the specified test file. Useful when debugging a single test or working on a specific feature.
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
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
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
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
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:
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 Suite | Sequential (1 slot) | Parallel (5 slots) | Parallel (10 slots) |
|---|---|---|---|
| 10 tests @ 2min each | 20 min | 4 min | 2 min |
| 50 tests @ 2min each | 100 min | 20 min | 10 min |
| 100 tests @ 2min each | 200 min | 40 min | 20 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:
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.a
Установить testdriver:running-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл testdriver:running-tests?
Run TestDriver tests with Vitest test runner
Как установить скилл testdriver:running-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testdriver:running-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic