How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Run TestDriver tests with Vitest test runner
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Learn how to run TestDriver tests efficiently with Vitest's powerful test runner.
TestDriver works with Vitest's powerful test runner.
<Info> Install Vitest globally for best results: `npm install vitest -g` </Info>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.
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.
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.
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.
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.
TestDriver runs each test in its own cloud sandbox, enabling true parallel execution. Run your entire test suite in minutes instead of hours.
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.
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)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.
<Info> View your available slots at [console.testdriver.ai](https://console.testdriver.ai). Upgrade anytime to increase parallelization. </Info>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'],
},
});
<Warning>
Setting `maxConcurrency` higher than your license slots will cause tests to fail when slots are exhausted. Always match this value to your plan's limit.
</Warning>
| 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. </Card>
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:
After running tests, view detailed reports and video replays at console.testdriver.ai.
Reports include:
$ 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
<Tip>
Bookmark your team's dashboard at [console.testdriver.ai](https://console.testdriver.ai) for quick access to test history and analytics.
</Tip>아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Execute natural language tasks using AI
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Make AI-powered assertions about screen state
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Deploy TestDriver on your AWS infrastructure using CloudFormation
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Speed up tests with screenshot-based caching
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
How TestDriver learns your app and caches what it discovers for instant, deterministic replays
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.