Skip to content

Feature - Playwright Support for Trace Zip Mapping#296

Merged
auvipy merged 9 commits intoTeemu:mainfrom
kiebak3r:main
Aug 16, 2025
Merged

Feature - Playwright Support for Trace Zip Mapping#296
auvipy merged 9 commits intoTeemu:mainfrom
kiebak3r:main

Conversation

@kiebak3r
Copy link
Copy Markdown
Contributor

Additional CLI args to map created trace zip files to test failures via playwright --tracing flag
Helps playwright users associate and debug zips faster

@auvipy auvipy requested review from auvipy and Copilot August 10, 2025 16:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Playwright trace file support to pytest-sugar, enabling automatic detection and display of trace.zip files for failed tests to improve debugging experience.

  • Adds two new CLI options for configuring trace file detection behavior
  • Implements trace file discovery logic that maps test failures to their corresponding trace.zip files
  • Displays trace file paths and Playwright view commands in test failure output

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
pytest_sugar.py Adds CLI options and trace detection logic with display formatting for failed tests
RELEASE.md Documents the new feature and CLI options

auvipy and others added 4 commits August 10, 2025 23:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kiebak3r. Many thanks for your pull request submission. I made a couple of suggested changes. Would you please take a look at my comments and let me know what you think?

@kiebak3r kiebak3r requested a review from justinmayer August 11, 2025 20:27
Copy link
Copy Markdown
Collaborator

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than a very minor capitalization consistency suggestion, I have no additional notes — this looks good to me 👍

README.md Outdated


Specify the directory where Playwright trace files are stored.
Defaults to playwright default: "test-results"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize Playwright here for consistency?

@auvipy auvipy merged commit 855d661 into Teemu:main Aug 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants