From a94ec0aede4a12f2ebe7a7a42628497460d76abe Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Tue, 3 May 2016 19:07:57 +0200 Subject: [PATCH] test presentation: include root comment as qualifier to get root fqName if failed with short name --- .../testframework/sm/runner/ui/TestsPresentationUtil.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {