From b7d4657d26e718fbb62956f4e9f2c2533a701052 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Fri, 28 Oct 2016 19:34:41 +0200 Subject: [PATCH] test output order: ensure that tree view with predefined structure searches for place for new printable (IDEA-163309) --- .../sm/runner/GeneralToSMTRunnerEventsConvertor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java index 5aee60f8e536..43083a05cc42 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -119,6 +119,7 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso myTreeBuildBeforeStart = true; myBuildTreeRunnables.add(() -> { final SMTestProxy testProxy = new SMTestProxy(testName, false, locationHint); + testProxy.setTreeBuildBeforeStart(); if (myLocator != null) { testProxy.setLocator(myLocator); } @@ -136,6 +137,7 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso myBuildTreeRunnables.add(() -> { final SMTestProxy parentSuite = getCurrentSuite(); final SMTestProxy newSuite = new SMTestProxy(suiteName, true, locationHint); + newSuite.setTreeBuildBeforeStart(); if (myLocator != null) { newSuite.setLocator(myLocator); }