Playwright - GitLab CI/CD
Running Playwright test in parallel using GitLab CI/CD
TL;DR take a look at the example repository:
The example .gitlab-ci.yml
file creates a GitLab CI pipeline with 3 workers using 3 Playwright Shards:
Setup
Create an account at https://app.currents.dev and grab the Project ID and Record Key.
Add
CURRENTS_RECORD_KEY
as GitLab CI/CD Secrets (make sure it's not protected)
Additional resources:
Playwright Features on Currents: https://currents.dev/playwright
Integration Documentation: https://currents.dev/readme/integration-with-playwright/currents-playwright
CI Build ID Guide: https://currents.dev/readme/guides/cypress-ci-build-id
GitLab CI Playwright Results
The results are being reported to Currents for more efficient troubleshooting, and monitoring test suite flakiness and performance.
Currents will collect the following information:
console output
screenshots
videos
trace files
timing
outcomes
flaky tests
error details
tags for more convenient management of the tests
GitLab Merge Request Notes
Take a look at the example merge request: https://gitlab.com/currents.dev/gitlab-playwright-currents/-/merge_requests/3
When GitLab integration is enabled, Currents will post a Merge Commit note with run results:
In addition, Currents will post an External Status check for every Playwright project configured. For example:
Last updated