From 9502ca8933d42aa61dfcb9d60839ef597bacdf97 Mon Sep 17 00:00:00 2001 From: anna Date: Thu, 18 Apr 2013 11:19:33 +0200 Subject: [PATCH] do not report "no tests were found" when root is a test itself --- .../sm/runner/ui/SMTRunnerNotificationsHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")