Skip to content

Quickstart

You already have a Playwright suite. This page gets your test results flowing into a Brittle hub in about two minutes.

  • A Playwright suite (@playwright/test already in your project).
  • A Brittle hub. Either:
  • A project token. Mint one in the dashboard under Project → Settings → Tokens, type service.
Terminal window
pnpm add -D @brittlehq/playwright-reporter
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests',
reporter: [
['list'],
['@brittlehq/playwright-reporter', {
hubUrl: process.env.BRITTLE_HUB_URL,
token: process.env.BRITTLE_TOKEN,
}],
],
projects: [
{ name: 'chromium' },
{ name: 'firefox' },
{ name: 'webkit' },
],
});

The reporter sits next to whatever reporters you already use. It runs in parallel with list / html / anything else.

Terminal window
export BRITTLE_HUB_URL=https://brittle.dev
export BRITTLE_TOKEN=brt_svc_xxx
pnpm exec playwright test

The reporter forwards every result, attachment, and Playwright trace to your hub. Open the dashboard while the run is in flight and you will see sessions roll in.

  • The test result (pass, fail, skip).
  • Playwright’s video, HAR, and trace if you have them enabled in playwright.config.ts.
  • test.info().annotations (owner, severity, issue links, anything you push) appear on the Session Detail page’s Annotations tab.
  • The git commit SHA, branch, and tags from the local checkout, picked up automatically.