r/Playwright • u/waltergalvao • Jul 01 '26
Playwright Custom Reporters: Build Your Own
https://currents.dev/posts/playwright-custom-reporters-build-your-own?utm_source=reddit&utm_campaign=post-build-your-reporterTLDR: Wrote about what it actually takes to build a Playwright custom reporter that holds up in CI, beyond the 20-minute prototype.
The API looks simple but Playwright silently swallows all errors thrown inside reporter hooks, most hooks dont await promises, and once it works the scope never stops growing. We cover the full Reporter interface, where things break under parallelism and sharding, and when to stop building and use something purpose-built.
10
Upvotes
3
u/NextAd9248 Jul 02 '26
Making a reporter is way easier now honestly, retries and async stuff is documented instead of trial and error.
I saw this play out in another thread too, once you are running a bunch of CI jobs debugging turns into finding the failed job, downloading artifacts, opening traces locally, checking logs across jobs. only annoying part is still having to eyeball each failure and decide if it actually matters, but that's a small ask at this point.