File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
UnityPerformanceBenchmarkReporter Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,18 @@ private void WriteShowFailedTestsCheckbox(StreamWriter streamWriter)
206
206
if ( thisHasBenchmarkResults )
207
207
{
208
208
streamWriter . WriteLine ( "<label id=\" hidefailed\" class=\" containerLabel\" >Show failed tests only" ) ;
209
- streamWriter . WriteLine ( "<input type=\" checkbox\" onclick=\" toggleCanvasWithNoFailures()\" checked>" ) ;
209
+
210
+ //var regressed = perfTestRunResults.SelectMany(ptr => ptr.TestResults).SelectMany(t => t.SampleGroupResults).Any(a => a.Regressed);
211
+
212
+ if ( perfTestRunResults . SelectMany ( ptr => ptr . TestResults ) . SelectMany ( t => t . SampleGroupResults ) . Any ( a => a . Regressed ) )
213
+ {
214
+ streamWriter . WriteLine ( "<input type=\" checkbox\" onclick=\" toggleCanvasWithNoFailures()\" checked>" ) ;
215
+ }
216
+ else
217
+ {
218
+ streamWriter . WriteLine ( "<input type=\" checkbox\" onclick=\" toggleCanvasWithNoFailures()\" >" ) ;
219
+ }
220
+
210
221
}
211
222
else
212
223
{
Original file line number Diff line number Diff line change @@ -234,6 +234,24 @@ public class ExtractField
234
234
ExtractedFieldName = "PerfTestsRevision" ,
235
235
ExtractionRegex = new Regex ( "PerfTestsRevision\\ |([^|]*)" ,
236
236
RegexOptions . Compiled | RegexOptions . IgnoreCase )
237
+ } ,
238
+ new ExtractField
239
+ {
240
+ ExtractedFieldName = "AndroidTargetArchitecture" ,
241
+ ExtractionRegex = new Regex ( "AndroidTargetArchitecture\\ |([^|]*)" ,
242
+ RegexOptions . Compiled | RegexOptions . IgnoreCase )
243
+ } ,
244
+ new ExtractField
245
+ {
246
+ ExtractedFieldName = "UrpVersion" ,
247
+ ExtractionRegex = new Regex ( "UrpVersion\\ |([^|]*)" ,
248
+ RegexOptions . Compiled | RegexOptions . IgnoreCase )
249
+ } ,
250
+ new ExtractField
251
+ {
252
+ ExtractedFieldName = "UrpRevision" ,
253
+ ExtractionRegex = new Regex ( "UrpRevision\\ |([^|]*)" ,
254
+ RegexOptions . Compiled | RegexOptions . IgnoreCase )
237
255
}
238
256
}
239
257
}
You can’t perform that action at this time.
0 commit comments