playwright icon indicating copy to clipboard operation
playwright copied to clipboard

feat: export reporters in `@playwright/test`

Open jameslounds opened this issue 2 years ago • 1 comments

I want to extend the built in reporter. It's a lot easier to use playwright's implementation of the raw, or json reporters to build on top of.

This PR changes @playwright/test's package.json to export all the Reporters in src/reporters/*.ts

Related Issues: #16089 #11319

jameslounds avatar Dec 06 '22 11:12 jameslounds

@jameslounds Thank you for the PR! Unfortunately, Playwright is not ready to support the stable API of these reporters, so exposing them publicly will not be very useful, as it will often break. Playwright is open-source, so I'd recommend to just copy the reporters you'd like and edit them to your liking. Let me know whether that works for you.

dgozman avatar Dec 14 '22 18:12 dgozman

Closing as per above.

pavelfeldman avatar Dec 19 '22 22:12 pavelfeldman