diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerTestTreeView.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerTestTreeView.java index 8ac6ab04c161..82682ae5e7de 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerTestTreeView.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTRunnerTestTreeView.java @@ -15,6 +15,7 @@ */ package com.intellij.execution.testframework.sm.runner.ui; +import com.intellij.execution.testframework.AbstractTestProxy; import com.intellij.execution.testframework.TestConsoleProperties; import com.intellij.execution.testframework.TestTreeView; import com.intellij.execution.testframework.sm.runner.SMTRunnerNodeDescriptor; @@ -75,4 +76,9 @@ public class SMTRunnerTestTreeView extends TestTreeView { } return super.getData(dataId); } + + @Override + protected String getPresentableName(AbstractTestProxy testProxy) { + return ((SMTestProxy)testProxy).getPresentableName(); + } } diff --git a/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java b/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java index 8f9ddb745488..ad67fad91cdd 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java @@ -192,7 +192,7 @@ public abstract class TestTreeView extends Tree implements DataProvider, CopyPro new TreeSpeedSearch(this, path -> { final AbstractTestProxy testProxy = getSelectedTest(path); if (testProxy == null) return null; - return testProxy.getName(); + return getPresentableName(testProxy); }); TreeUtil.installActions(this); PopupHandler.installPopupHandler(this, IdeActions.GROUP_TESTTREE_POPUP, ActionPlaces.TESTTREE_VIEW_POPUP); @@ -210,6 +210,10 @@ public abstract class TestTreeView extends Tree implements DataProvider, CopyPro }); } + protected String getPresentableName(AbstractTestProxy testProxy) { + return testProxy.getName(); + } + public boolean isExpandableHandlerVisibleForCurrentRow(int row) { final ExpandableItemsHandler handler = getExpandableItemsHandler(); final Collection items = handler.getExpandedItems();