diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerNotificationsHandler.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerNotificationsHandler.java index 7a975ad330d2..0c0290c14a1d 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerNotificationsHandler.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerNotificationsHandler.java @@ -74,7 +74,7 @@ public class SMTRunnerNotificationsHandler extends SMTRunnerEventsAdapter { type = MessageType.ERROR; break; case COMPLETE_INDEX: - if (testsRoot.getChildren().size() == 0) { + if (testsRoot.getChildren().size() == 0 && !testsRoot.isLeaf()) { msg = testsRoot.hasErrors() ? SMTestsRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.no.tests.were.found.with.errors") : testsRoot.isTestsReporterAttached() ? SMTestsRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.no.tests.were.found")