Skip to content

Unify tracing on PW_TRACE and wire config tracing (fix #79)#111

Merged
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/unify-trace-env
Jul 21, 2026
Merged

Unify tracing on PW_TRACE and wire config tracing (fix #79)#111
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/unify-trace-env

Conversation

@smnandre

Copy link
Copy Markdown
Member

PW_TRACE and PW_TRACING coexisted: the PHPUnit trait read PW_TRACE while PlaywrightConfigBuilder::fromEnv() read PW_TRACING, and the tracingEnabled/traceDir config fields were never consumed at runtime.

fromEnv() now reads PW_TRACE only: PW_TRACING is removed since it never had any runtime effect.

Config tracing is wired: contexts start tracing on creation and save the trace to traceDir on close.

Fixes #79

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

PW_TRACE and PW_TRACING coexisted: the PHPUnit trait read PW_TRACE while PlaywrightConfigBuilder::fromEnv() read PW_TRACING, and the tracingEnabled/traceDir config fields were never consumed at runtime. fromEnv() now reads PW_TRACE only: PW_TRACING is removed since it never had any runtime effect. Config tracing is wired: contexts start tracing on creation and save the trace to traceDir on close. Fixes playwright-php#79
@smnandre
smnandre force-pushed the sa/unify-trace-env branch from a5372cb to c2440da Compare July 21, 2026 16:54
@smnandre
smnandre merged commit b452e7a into playwright-php:main Jul 21, 2026
11 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.

PW_TRACE vs. PW_TRACING

1 participant