update metadata, fix show failed tests only bug

(cherry picked from commit c1dd134394ff3f950ce97ed4ccd363e584e13c54)
This commit is contained in:
Sean Stolberg 2020-05-06 14:12:32 -07:00
Родитель afb22f8821
Коммит 9fe50428a8
2 изменённых файлов: 30 добавлений и 1 удалений

Просмотреть файл

@ -206,7 +206,18 @@ namespace UnityPerformanceBenchmarkReporter.Report
if (thisHasBenchmarkResults)
{
streamWriter.WriteLine("<label id=\"hidefailed\" class=\"containerLabel\">Show failed tests only");
streamWriter.WriteLine("<input type=\"checkbox\" onclick=\"toggleCanvasWithNoFailures()\" checked>");
//var regressed = perfTestRunResults.SelectMany(ptr => ptr.TestResults).SelectMany(t => t.SampleGroupResults).Any(a => a.Regressed);
if (perfTestRunResults.SelectMany(ptr => ptr.TestResults).SelectMany(t => t.SampleGroupResults).Any(a => a.Regressed))
{
streamWriter.WriteLine("<input type=\"checkbox\" onclick=\"toggleCanvasWithNoFailures()\" checked>");
}
else
{
streamWriter.WriteLine("<input type=\"checkbox\" onclick=\"toggleCanvasWithNoFailures()\">");
}
}
else
{

Просмотреть файл

@ -234,6 +234,24 @@ namespace UnityPerformanceBenchmarkReporter
ExtractedFieldName = "PerfTestsRevision",
ExtractionRegex = new Regex("PerfTestsRevision\\|([^|]*)",
RegexOptions.Compiled | RegexOptions.IgnoreCase)
},
new ExtractField
{
ExtractedFieldName = "AndroidTargetArchitecture",
ExtractionRegex = new Regex("AndroidTargetArchitecture\\|([^|]*)",
RegexOptions.Compiled | RegexOptions.IgnoreCase)
},
new ExtractField
{
ExtractedFieldName = "UrpVersion",
ExtractionRegex = new Regex("UrpVersion\\|([^|]*)",
RegexOptions.Compiled | RegexOptions.IgnoreCase)
},
new ExtractField
{
ExtractedFieldName = "UrpRevision",
ExtractionRegex = new Regex("UrpRevision\\|([^|]*)",
RegexOptions.Compiled | RegexOptions.IgnoreCase)
}
}
}