Skip to content

Commit 3627532

Browse files
committed
Update Test Case Status in Test Plan
1 parent c9c39dd commit 3627532

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

azure-devops-test-plan-pipeline.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
trigger:
2+
- main
3+
4+
pool:
5+
vmImage: ubuntu-latest
6+
7+
steps:
8+
- task: NodeTool@0
9+
inputs:
10+
versionSpec: "18"
11+
displayName: "Install Node.js"
12+
13+
- script: npm ci
14+
displayName: "npm ci"
15+
16+
- script: npx playwright install --with-deps
17+
displayName: "Install Playwright browsers"
18+
19+
- script: npx playwright test --grep PlaywrightWithAzureDevOpsPipeline
20+
displayName: "Run Playwright tests"
21+
env:
22+
CI: "true"
23+
24+
- script: npx ts-node src/utils/RunUpdate.ts
25+
displayName: "Update Test Plan Test Case Status"
26+
condition: always()
27+
28+
- task: PublishTestResults@2
29+
displayName: "Publish test results"
30+
inputs:
31+
testResultsFormat: "JUnit"
32+
testResultsFiles: "junit-test-report.xml"
33+
mergeTestResults: true
34+
failTaskOnFailedTests: true
35+
testRunTitle: "My End-To-End Tests"
36+
condition: succeededOrFailed()
37+
38+
- task: PublishPipelineArtifact@1
39+
inputs:
40+
targetPath: playwright-report
41+
artifact: playwright-report
42+
publishLocation: "pipeline"
43+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)