Skip to main content

Introduction

A test analytics toolkit that generates structured JSON reports from your Playwright test runs — capturing navigation timelines, network statistics, failure diagnostics, and CI metadata.

What It Does

When you run your Playwright tests with the TestRelic reporter and fixture, you get a single JSON file that captures:

  • Navigation timeline — Every URL visited during each test, in chronological order, with navigation type detection (goto, link click, back/forward, SPA route changes, hash changes)
  • Network statistics — Total requests, failed requests, bytes transferred, and resource type breakdowns (scripts, images, stylesheets, fonts, XHR)
  • Test results — Pass/fail/flaky status, duration, retry count, and tags for every test
  • Failure diagnostics — Error messages, source code snippets pointing to the exact failure line, and optional stack traces
  • CI metadata — Auto-detection of GitHub Actions, GitLab CI, Jenkins, and CircleCI with build ID, commit SHA, and branch
  • Sensitive data redaction — Automatically scrubs AWS keys, Bearer tokens, private keys, and credential URLs

Prerequisites

  • Node.js >= 18
  • Playwright >= 1.35.0

Next Steps

Ready to get started? Check out the Installation Guide to integrate TestRelic into your Playwright project.

Was this doc helpful?