Skip to content

Commit c8f8bfd

Browse files
edgardmessiasJohnstonCode
authored andcommitted
chore: Publish Test Results to Azure Pipelines (#506)
1 parent d8364a2 commit c8f8bfd

File tree

6 files changed

+418
-311
lines changed

6 files changed

+418
-311
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/coverage
33
/node_modules
44
/out
5+
/test-reports
56
svn-scm*.vsix

build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ jobs:
3232
command: custom
3333
verbose: false
3434
customCommand: 'run test --silent'
35+
- task: PublishTestResults@2
36+
displayName: 'Publish Test Results'
37+
inputs:
38+
testResultsFormat: 'JUnit'
39+
testResultsFiles: 'test-reports/*.xml'
40+
mergeTestResults: true
41+
testRunTitle: '$(Agent.OS) $(Agent.JobName)'
3542
- job: macOS
3643
strategy:
3744
matrix:
@@ -65,6 +72,13 @@ jobs:
6572
command: custom
6673
verbose: false
6774
customCommand: 'run test --silent'
75+
- task: PublishTestResults@2
76+
displayName: 'Publish Test Results'
77+
inputs:
78+
testResultsFormat: 'JUnit'
79+
testResultsFiles: 'test-reports/*.xml'
80+
mergeTestResults: true
81+
testRunTitle: '$(Agent.OS) $(Agent.JobName)'
6882
- job: Linux
6983
strategy:
7084
matrix:
@@ -111,6 +125,13 @@ jobs:
111125
customCommand: 'run test --silent'
112126
env:
113127
DISPLAY: :10
128+
- task: PublishTestResults@2
129+
displayName: 'Publish Test Results'
130+
inputs:
131+
testResultsFormat: 'JUnit'
132+
testResultsFiles: 'test-reports/*.xml'
133+
mergeTestResults: true
134+
testRunTitle: '$(Agent.OS) $(Agent.JobName)'
114135
- job: Release
115136
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
116137
dependsOn:

0 commit comments

Comments
 (0)