Skip to content

[Feature]: HTML TraceView generator for Playwright Python #2992

@JK-JuLaYi

Description

@JK-JuLaYi

🚀 Feature Request

Hi Playwright Team

I’ve built a Python utility called playwright-traceview-html that automatically generates an interactive HTML report of Playwright trace results (with links to open traces directly).

🔗 PyPI: https://pypi.org/project/playwright-traceview-html/
💻 GitHub: https://github.com/JK-JuLaYi/playwright-traceview-html/

What it does

  • Scans a results folder (e.g. test-results/) for trace_*.zip files.
  • Creates a clean, interactive HTML page listing all test traces and statuses.
  • Includes a “Open Trace” link for each item — it runs playwright show-trace via a local server.
  • Adds a “Stop Report Server” button for convenience.
  • Works as a standalone command-line tool.

Example

Example command:

python -m playwright_traceview_html

Motivation

  • Makes it easier to review multiple Playwright traces after test runs.
  • Ideal for CI/CD workflows, where teams can open a single HTML page summarizing all test traces.
  • Simplifies debugging and visualizing large suites.
  • Can integrate naturally with the existing playwright show-trace command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions