Publishing Playwright report as an artifact in Azure DevOps

  1. Creating a multi-stage YAML pipeline in Azure DevOps for .NET projects

  2. Running tests with code coverage in Azure DevOps YAML pipelines

  3. Static code analysis with NDepend in Azure Pipelines

  4. Running e2e tests with Playwright in Azure YAML Pipelines

  5. Publishing Playwright report as an artifact in Azure DevOps

  6. Bicep Infrastructure Deployment from Azure DevOps YAML Pipelines

  7. Blue-green Deployments in Azure DevOps YAML Pipelines

  8. Pre-Deployment Health Checks in Azure DevOps YAML Pipelines

  9. Azure DevOps Best Practices: Breaking Down the Monolithic YAML


To store the Playwright report as an artifact we just need to publish the folder where the results of the tests are stored:

- publish: $(System.DefaultWorkingDirectory)/<path-to-e2e-report-folder>
  artifact: playwright-report

Once the pipeline is finished you can see the report published in the artifacts section:

The folder contains an index.html file with the results which you can simply open in the browser of your choice.