diff --git a/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt b/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt index 579f7ba..d377511 100644 --- a/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt +++ b/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt @@ -21,7 +21,7 @@ class JUnit5Summary(testPlan: TestPlan, internal val anyTestsRed: Boolean, inter if (other !is JUnit5Summary) { return false } - if (testCount == other.testCount && anyTestsRed == other.anyTestsRed && anyTestsGreen == other.anyTestsGreen) { + if (testCount == other.testCount && anyTestsGreen && !anyTestsRed) { return true } return false