mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
[Recent Tests] Corrected run configuration presentation in recent tests
This commit is contained in:
@@ -119,13 +119,13 @@ class RunConfigurationEntry(val runSettings: RunnerAndConfigurationSettings, ini
|
||||
if (suites.size == 1) {
|
||||
return suites[0].getEntriesToShow()
|
||||
}
|
||||
|
||||
val failedSuites = suites.filter { it.failedTests.size > 0 }
|
||||
if (failedSuites.size == 0) {
|
||||
return listOf(this)
|
||||
}
|
||||
|
||||
return failedSuites + this
|
||||
return suites
|
||||
.filter { it.failedTests.size > 0}
|
||||
.sortedByDescending { it.runDate }
|
||||
.fold(listOf<RecentTestsPopupEntry>(), { popupList, currentEntry ->
|
||||
popupList + currentEntry.getEntriesToShow()
|
||||
}) + this
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user