diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/TestsPresentationUtil.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/TestsPresentationUtil.java index acd78a94cb74..c64e6fae9ef3 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/TestsPresentationUtil.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/TestsPresentationUtil.java @@ -233,6 +233,14 @@ public class TestsPresentationUtil { if (presentation != null) { parentName = presentation; parentStartsWith = name.startsWith(parentName); + + if (!parentStartsWith) { + String comment = ((SMTestProxy.SMRootTestProxy)parent).getComment(); + if (comment != null) { + parentName = StringUtil.getQualifiedName(comment, presentation); + parentStartsWith = name.startsWith(parentName); + } + } } } if (parentStartsWith) {