Announcing Playwright Test Runner reporting in Artillery Cloud
Today we are announcing support for Playwright Test Runner reporting in Artillery Cloud. With a 2 line change in playwright.config.ts
you will be able to:
- Monitor Playwright tests in real-time
- View HTML reports with screenshots and traces in Artillery Cloud
- Integrate with GitHub Actions with PR comments for successful & failed test runs
Getting started
-
Sign up for an Artillery Cloud account on https://app.artillery.io and get an API key
-
Install the Artillery Cloud reporter:
npm install -D @artilleryio/playwright-reporter
-
Enable the reporter in your
playwright.config.ts
file:const config: PlaywrightTestConfig = { reporter: [ ['blob'], // required for Artillery's reporter to work ['@artilleryio/playwright-reporter', { name: 'My Test Suite' }], ], // ... rest of your config };
-
Set your Artillery Cloud API key
export ARTILLERY_CLOUD_API_KEY=a9_your_api_key
You can create an API key in Artillery Cloud here: https://app.artillery.io/settings/api-keys
Then run your Playwright tests as normal, e.g. with:
npx playwright test
The reporter will print a link for the test run to the console. You can track the progress of the test run in real-time in Artillery Cloud via that link.
If the test is running in GitHub Actions, the reporter will also post a comment on the PR with the link to the test run once it completes.
How much does this cost?
This feature is available to all users of Artillery Cloud, including those on the free Developer plan. You can record up to 100 test suite runs every month for free. Detailed pricing information is available on https://app.artillery.io/settings/billing
Learn more
Please see the documentation for the reporter on https://www.artillery.io/docs/reference/extensions/playwright-reporter