Playwright - Azure DevOps
Running Playwright test in parallel on Azure DevOps and Currents Dashboard
TL;DR Check out the example repository:
https://github.com/currents-dev/playwright-azure-devops-example
Currents can use the native Playwright Sharding to split the tests between multiple containers. The results from distributed runs will be collected together with the generated artifacts to provide insights into test suite performance.
The example repository https://github.com/currents-dev/playwright-azure-devops-example
showcases using 3 Azure DevOps containers to allow parallel execution of the test using Currents as a reporting service.
Connect a new/existing Azure Pipeline to a repository containing your Playwright tests.
Create an organization, get your Record Key and Project Id at https://app.currents.dev
Create or modify an existing Variable Group, and add a new secret variable called
CURRENTS_RECORD_KEY
with your Record Key.Include your Project Id in an env variable called
CURRENTS_PROJECT_ID
in your pipeline configuration.Ensure the @current/playwright package has been integrated into your tests.
Modify your
azure-pipelines.yml
file to run the tests and use one of the example pipeline files as a reference.
Here's an example pipeline file:
Pipeline executions will be recorded and available in the Currents Dashboard, and test results and artifacts will be automatically uploaded.
Here's an example of how the demo workflow appears in the Currents dashboard
Last updated