mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not report "no tests were found" when root is a test itself
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user