For the complete documentation index, see llms.txt. This page is also available as Markdown.

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/currents-examples

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 uses 3 Azure DevOps containers to allow parallel execution of the test showcasing 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.

Running Playwright Tests in Azure DevOps Pipeline
Running Playwright Tests in Azure DevOps Pipeline

Last updated

Was this helpful?