Testdriver hosted

From testdriverai/testdriverai · View interactive version

Testdriver hosted is an AI agent skill from the GitHub repository testdriverai/testdriverai. The fastest way to get started with TestDriver. Just set your API key and start testing.

How to use this skill

Skill file

<!-- Generated from hosted.mdx. DO NOT EDIT. -->

The hosted price uses device-seconds: the time that your tests run on our infrastructure.

Hosted Plans

<CardGroup cols={3}>

<Card title="Free Trial" icon="gift" href="https://docs.testdriver.ai">

$0/month

</Card>

<Card title="Pro" icon="rocket" href="https://console.testdriver.ai/checkout/pro">

$20/month per user

</Card>

<Card title="Team" icon="users" href="https://console.testdriver.ai/checkout/team">

$600/month

</Card>

</CardGroup>

Get Started

Hosted is the default when you follow the Quickstart guide.

<Card

title="Try the Quickstart"

icon="play"

href="/quickstart"

Set your API key and start testing in minutes.

</Card>

Parallel Testing Limits

Your account has a set number of license slots that determine how many devices can run simultaneously. You can view your available slots in the TestDriver Dashboard.

<Info>

When is a slot in use? A license slot is occupied when a test client is connected. As soon as your device is destroyed the slot becomes available immediately.

</Info>

Avoiding Slot Conflicts

To prevent tests from failing due to exceeding your license slot limit, we recommend two key configurations:

<AccordionGroup>

<Accordion title="Set Maximum Concurrency in Vitest">

Limit concurrent tests to match your available license slots:

```javascript vitest.config.mjs

import { defineConfig } from 'vitest/config';

import TestDriver from 'testdriverai/vitest';

export default defineConfig({

test: {

testTimeout: 900000,

hookTimeout: 900000,

maxConcurrency: 5, // Set to your license slot limit

reporters: ['default', TestDriver()],

setupFiles: ['testdriverai/vitest/setup'],

},

});

```

<Tip>

Check your slot count at console.testdriver.ai and set maxConcurrency to that number or lower.

</Tip>

</Accordion>

<Accordion title="Use GitHub Concurrency Keys">

Prevent multiple workflow runs from competing for the same slots by using GitHub's concurrency controls:

```yaml .github/workflows/test.yml

name: Tests

on:

push:

branches: [main]

pull_request:

# Prevent concurrent runs from competing for license slots

concurrency:

group: ${{ github.workflow }}-${{ github.ref }}

cancel-in-progress: true

jobs:

test:

runs-on: ubuntu-latest

steps:

uses: actions/setup-node@v4

with:

node-version: '20'

run: npm install

run: vitest run

env:

TD_API_KEY: ${{ secrets.TD_API_KEY }}

```

The concurrency block ensures:

</Accordion>

</AccordionGroup>

When to Consider Self-Hosted

Hosted is perfect for getting started and for teams that want zero infrastructure management. However, you might consider Self-Hosted if you:

<Card

title="Explore Self-Hosted"

icon="server"

href="/self-hosted"

Learn about self-hosting for unlimited test execution at a flat rate.

</Card>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.