Logo di Testdriver:Running Tests

Testdriver:Running Tests

Organizzazione
testdriverai
testdriver:running-tests

Run TestDriver tests with Vitest test runner

Panoramica

Autoretestdriverai
Repositorytestdriverai
Nome della skilltestdriver:running-tests
Stelle
465
Fork
39
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da testdriverai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Testdriver:Running Tests in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-running-tests
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Testdriver:Running Tests in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Testdriver:Running Tests non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Testdriver:Running Tests non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA Testdriver:Running Tests?

Run TestDriver tests with Vitest test runner

Perché usare Testdriver:Running Tests su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Testdriver:Running Tests è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Testdriver:Running Tests in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-running-tests. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Testdriver:Running Tests?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Testdriver:Running Tests?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Testdriver:Running Tests: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Testdriver:Running Tests è gratuita?

È pubblicata su GitHub da testdriverai. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇