Playwright and Azure Pipelines (

Опубликовано: 21 Июль 2026
на канале: Asp.Net Monsters
1,503
14

Playwright and Azure Pipelines work well together. Let's see how easy it is to run Playwright tests in an Azure Pipeline then view the test results along with attached screenshots, videos, and trace files.

Azure Pipelines yaml:
trigger:
master

pool:
vmImage: ubuntu-latest

steps:
script: echo Hello, world!
displayName: 'Run a one-line script'

script: |
npm install
npx playwright install
npx playwright test
displayName: 'Run Playwright tests'

task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'results.xml'
testRunTitle: 'MyTestRun'
condition: succeededOrFailed()


*Dave is a software engineer at Microsoft on the Azure DevOps team.