[Recent Tests] Set suite magnitude to failed if it's marked as passed, but some of suite's test is failed

This commit is contained in:
Yaroslav Lepenkin
2016-06-15 15:41:34 +03:00
parent 17bcc2f6b5
commit 5304a52d2f
2 changed files with 116 additions and 0 deletions
@@ -79,6 +79,16 @@ class SuiteEntry(url: String, magnitude: TestStateInfo.Magnitude, runDate: Date)
return listOf(this)
}
override val magnitude: TestStateInfo.Magnitude by lazy {
tests.forEach {
if (it.magnitude != super.magnitude) {
return@lazy it.magnitude
}
}
super.magnitude
}
}