Overview
TestDriver automatically writes a JSON result file for each test case after it finishes. These files contain comprehensive metadata about the test run, including SDK and runner versions, infrastructure details, interaction statistics, and links to recordings. Result files are written to:tests/login.test.mjs with a test named "should log in" produces:
Test names are sanitized for filesystem use — special characters are replaced with underscores and names are truncated to 200 characters.
Enabling
No configuration is required. The JSON files are written automatically by the TestDriver Vitest reporter plugin whenever tests run.JSON Schema
Each result file is organized into logical groups:versions
test
urls
replay
The replay object contains the recording replay URL and derived embed links. The gifUrl and embedUrl are generated automatically from the replay URL.
The
replay.markdown field produces a clickable GIF badge you can paste directly into PR comments, README files, or issue descriptions:
date
team
infrastructure
realtime
interactions
Example Output
Using Result Files in CI
Result files are useful for extracting test metadata in CI pipelines without parsing log output.GitHub Actions Example
UsefromJSON to parse a result file into a GitHub Actions expression you can reference in subsequent steps:

