buildkite / test-collector-javascript

Buildkite Test Analytics collectors for JavaScript test frameworks
https://buildkite.com/test-analytics
MIT License
13 stars 15 forks source link

Support for Playwright #41

Closed hbhatia-demyst closed 9 months ago

lanej0 commented 1 year ago

+1 for this. You can run Playwright tests with Jest, but I think it's far more common to use the native Playwright test runner -- so a Playwright test collector would be awesome!

I've tried the .json and junit reporters in Playwright, and tried importing those -- but Buildkite doesn't appear to like the files that Playwright outputs. I've attached the junit.xml I received from a Playwright run on WooCommerce (the tests here).

junit.xml.zip

The response from Buildkite is:

{
  "message": "Invalid JUnit XML: No test cases present"
}
curl: (22) The requested URL returned error: 422
nprizal commented 9 months ago

Stable Playwright support has been added in v1.6.3