Skip to content

Commit e53e7f5

Browse files
committed
[ci] Use descriptive test run titles.
1 parent 7f1a5ab commit e53e7f5

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
- template: templates\core-tests.yaml
9696
parameters:
9797
runNativeDotnetTests: true
98+
platformName: .NET - Windows
9899

99100
- template: templates\fail-on-issue.yaml
100101

@@ -189,5 +190,6 @@ jobs:
189190
- template: templates\core-tests.yaml
190191
parameters:
191192
runNativeTests: true
193+
platformName: .NET - MacOS
192194

193195
- template: templates\fail-on-issue.yaml

build-tools/automation/templates/core-tests.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,70 @@
11
parameters:
22
condition: succeeded()
33
runNativeTests: false
4+
platformName:
45

56
steps:
67
- task: DotNetCoreCLI@2
78
displayName: 'Tests: generator'
89
inputs:
910
command: test
11+
testRunTitle: generator (${{ parameters.platformName }})
1012
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/generator-Tests.dll
1113
continueOnError: true
1214

1315
- task: DotNetCoreCLI@2
1416
displayName: 'Tests: JavaCallableWrappers'
1517
inputs:
1618
command: test
19+
testRunTitle: Java.Interop.Tools.JavaCallableWrappers (${{ parameters.platformName }})
1720
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop.Tools.JavaCallableWrappers-Tests.dll
1821
continueOnError: true
1922

2023
- task: DotNetCoreCLI@2
2124
displayName: 'Tests: logcat-parse'
2225
inputs:
2326
command: test
27+
testRunTitle: logcat-parse (${{ parameters.platformName }})
2428
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/logcat-parse-Tests.dll
2529
continueOnError: true
2630

2731
- task: DotNetCoreCLI@2
2832
displayName: 'Tests: ApiXmlAdjuster'
2933
inputs:
3034
command: test
35+
testRunTitle: Xamarin.Android.Tools.ApiXmlAdjuster (${{ parameters.platformName }})
3136
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Xamarin.Android.Tools.ApiXmlAdjuster-Tests.dll
3237
continueOnError: true
3338

3439
- task: DotNetCoreCLI@2
3540
displayName: 'Tests: Bytecode'
3641
inputs:
3742
command: test
43+
testRunTitle: Xamarin.Android.Tools.Bytecode (${{ parameters.platformName }})
3844
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Xamarin.Android.Tools.Bytecode-Tests.dll
3945
continueOnError: true
4046

4147
- task: DotNetCoreCLI@2
4248
displayName: 'Tests: Java.Interop.Tools.Generator'
4349
inputs:
4450
command: test
51+
testRunTitle: Java.Interop.Tools.Generator (${{ parameters.platformName }})
4552
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop.Tools.Generator-Tests.dll
4653
continueOnError: true
4754

4855
- task: DotNetCoreCLI@2
4956
displayName: 'Tests: Java.Interop.Tools.JavaSource'
5057
inputs:
5158
command: test
59+
testRunTitle: Java.Interop.Tools.JavaSource (${{ parameters.platformName }})
5260
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop.Tools.JavaSource-Tests.dll
5361
continueOnError: true
5462

5563
- task: DotNetCoreCLI@2
5664
displayName: 'Tests: Xamarin.SourceWriter'
5765
inputs:
5866
command: test
67+
testRunTitle: Xamarin.SourceWriter (${{ parameters.platformName }})
5968
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Xamarin.SourceWriter-Tests.dll
6069
continueOnError: true
6170

@@ -64,6 +73,7 @@ steps:
6473
condition: eq('${{ parameters.runNativeTests }}', 'true')
6574
inputs:
6675
command: test
76+
testRunTitle: Java.Interop (netstandard2.0 - ${{ parameters.platformName }})
6777
arguments: bin/Test$(Build.Configuration)/Java.Interop-Tests.dll
6878
continueOnError: true
6979

@@ -72,6 +82,7 @@ steps:
7282
condition: or(eq('${{ parameters.runNativeDotnetTests }}', 'true'), eq('${{ parameters.runNativeTests }}', 'true'))
7383
inputs:
7484
command: test
85+
testRunTitle: Java.Interop (net6.0 - ${{ parameters.platformName }})
7586
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop-Tests.dll
7687
continueOnError: true
7788

@@ -80,6 +91,7 @@ steps:
8091
condition: eq('${{ parameters.runNativeTests }}', 'true')
8192
inputs:
8293
command: test
94+
testRunTitle: Java.Interop.Dynamic (${{ parameters.platformName }})
8395
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop.Dynamic-Tests.dll
8496
continueOnError: true
8597

@@ -88,21 +100,24 @@ steps:
88100
condition: eq('${{ parameters.runNativeTests }}', 'true')
89101
inputs:
90102
command: test
103+
testRunTitle: Java.Interop.Export (${{ parameters.platformName }})
91104
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop.Export-Tests.dll
92105
continueOnError: true
93106

94107
- task: DotNetCoreCLI@2
95-
displayName: 'Tests: Java.Interop'
108+
displayName: 'Tests: Java.Interop-Performance'
96109
condition: eq('${{ parameters.runNativeTests }}', 'true')
97110
inputs:
98111
command: test
112+
testRunTitle: Java.Interop-Performance (net472 - ${{ parameters.platformName }})
99113
arguments: bin/Test$(Build.Configuration)/Java.Interop-PerformanceTests.dll
100114
continueOnError: true
101115

102116
- task: DotNetCoreCLI@2
103-
displayName: 'Tests: Java.Interop'
117+
displayName: 'Tests: Java.Interop-Performance'
104118
condition: eq('${{ parameters.runNativeTests }}', 'true')
105119
inputs:
106120
command: test
121+
testRunTitle: Java.Interop-Performance (net6.0 - ${{ parameters.platformName }})
107122
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Java.Interop-PerformanceTests.dll
108123
continueOnError: true

0 commit comments

Comments
 (0)