File tree 4 files changed +31
-2
lines changed 4 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 102
102
Targets =" RunCITests" />
103
103
</Target >
104
104
105
+ <Target Name =" RunSpecificTests" >
106
+ <MSBuild Projects =" test\run-tests.proj"
107
+ Targets =" RunSpecificTests" />
108
+ </Target >
109
+
105
110
<Target Name =" RunNightlyBuildTests" >
106
111
<MSBuild Projects =" test\run-night-build-tests.proj"
107
112
Targets =" RunNightlyBuildTests" />
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ parameters:
7
7
codeCoverage : false
8
8
nightlyBuild : false
9
9
innerLoop : false
10
+ runSpecific : false
10
11
container : ' '
11
12
12
13
jobs :
66
67
- script : ${{ parameters.buildScript }} -- /t:DownloadExternalTestFiles /p:IncludeBenchmarkData=$(_includeBenchmarkData)
67
68
displayName : Download Benchmark Data
68
69
- ${{ if eq(parameters.innerLoop, 'false') }} :
69
- - script : ${{ parameters.buildScript }} -$(_configuration) -runtests -coverage=${{ parameters.codeCoverage }}
70
- displayName : Run All Tests.
70
+ - ${{ if eq(parameters.runSpecific, 'false') }} :
71
+ - script : ${{ parameters.buildScript }} -$(_configuration) -runtests -coverage=${{ parameters.codeCoverage }}
72
+ displayName : Run All Tests.
73
+ - ${{ if eq(parameters.runSpecific, 'true') }} :
74
+ - script : ${{ parameters.buildScript }} -$(_configuration) -runSpecificTests -coverage=${{ parameters.codeCoverage }}
75
+ displayName : Run Specific Tests.
71
76
- ${{ if eq(parameters.innerLoop, 'true') }} :
72
77
- script : ${{ parameters.buildScript }} -$(_configuration) -runCITests -coverage=${{ parameters.codeCoverage }}
73
78
displayName : Run CI Tests.
Original file line number Diff line number Diff line change 84
84
"values" : [],
85
85
"defaultValue" : " "
86
86
},
87
+ "RunSpecificTests" : {
88
+ "description" : " MsBuild target that run specific tests only. Call this after building." ,
89
+ "valueType" : " target" ,
90
+ "values" : [],
91
+ "defaultValue" : " "
92
+ },
87
93
"RunNightlyBuildTests" : {
88
94
"description" : " MsBuild target that run the nightly build tests. Call this after building." ,
89
95
"valueType" : " target" ,
178
184
"RunCITests" : " default"
179
185
}
180
186
},
187
+ "runSpecificTests" : {
188
+ "description" : " Runs Specific tests. Call this after building." ,
189
+ "settings" : {
190
+ "RunSpecificTests" : " default"
191
+ }
192
+ },
181
193
"runnightlybuildtests" : {
182
194
"description" : " Runs the nightly build tests. Call this after building." ,
183
195
"settings" : {
Original file line number Diff line number Diff line change 20
20
Properties =" VSTestNoBuild=true;VSTestBlame=true;VSTestTestCaseFilter=Category!=SkipInCI" />
21
21
</Target >
22
22
23
+ <Target Name =" RunSpecificTests" >
24
+ <Message Importance =" High" Text =" Running Specific tests ..." />
25
+ <MSBuild Targets =" VSTest"
26
+ Projects =" @(Project)"
27
+ Properties =" VSTestNoBuild=true;VSTestBlame=true;VSTestTestCaseFilter=Category=RunSpecificTest" />
28
+ </Target >
29
+
23
30
<Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
24
31
25
32
<Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.traversal.targets))\dir.traversal.targets" />
You can’t perform that action at this time.
0 commit comments