From b1366e6fc66707e2acc3e63ae27845e206136b22 Mon Sep 17 00:00:00 2001 From: anna Date: Wed, 7 Jul 2010 16:12:21 +0400 Subject: [PATCH] arithmetics --- .../com/intellij/execution/testframework/TestsUIUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/testRunner/src/com/intellij/execution/testframework/TestsUIUtil.java b/platform/testRunner/src/com/intellij/execution/testframework/TestsUIUtil.java index 94c84b08f4f7..d0ca3d51bad5 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/TestsUIUtil.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/TestsUIUtil.java @@ -120,8 +120,11 @@ public class TestsUIUtil { type = MessageType.WARNING; } else{ List allTests = Filter.LEAF.select(root.getAllTests()); - int failedCount = Filter.DEFECTIVE_LEAF.select(allTests).size(); - int notStartedCount = Filter.NOT_PASSED.select(allTests).size(); + final List failed = Filter.DEFECTIVE_LEAF.select(allTests); + int failedCount = failed.size(); + final List notStarted = Filter.NOT_PASSED.select(allTests); + notStarted.removeAll(failed); + int notStartedCount = notStarted.size(); int passedCount = allTests.size() - failedCount - notStartedCount; if (failedCount > 0) { title = ExecutionBundle.message("junit.runing.info.tests.failed.label");