RUBY-17820 RSpec describe names truncated

This commit is contained in:
Andrey Vokin
2016-02-26 16:32:31 +03:00
parent 79c79d07f0
commit 5cc765c34f
4 changed files with 20 additions and 3 deletions
@@ -264,7 +264,7 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso
SMTestProxy newSuite = findChildByName(parentSuite, suiteName);
if (newSuite == null) {
//new suite
newSuite = new SMTestProxy(suiteName, true, locationUrl);
newSuite = new SMTestProxy(suiteName, true, locationUrl, parentSuite.isPreservePresentableName());
if (myLocator != null) {
newSuite.setLocator(myLocator);
@@ -90,6 +90,10 @@ public class SMTestProxy extends AbstractTestProxy {
myPreservePresentableName = preservePresentableName;
}
public boolean isPreservePresentableName() {
return myPreservePresentableName;
}
public void setLocator(@NotNull SMTestLocator testLocator) {
myLocator = testLocator;
}
@@ -851,7 +855,11 @@ public class SMTestProxy extends AbstractTestProxy {
private ProcessHandler myHandler;
public SMRootTestProxy() {
super("[root]", true, null);
this(false);
}
public SMRootTestProxy(boolean preservePresentableName) {
super("[root]", true, null, preservePresentableName);
}
public void setTestsReporterAttached() {
@@ -137,7 +137,7 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
//Create tests common suite root
//noinspection HardCodedStringLiteral
myTestsRootNode = new SMTestProxy.SMRootTestProxy();
myTestsRootNode = new SMTestProxy.SMRootTestProxy(consoleProperties.isPreservePresentableName());
//todo myTestsRootNode.setOutputFilePath(runConfiguration.getOutputFilePath());
// Fire selection changed and move focus on SHIFT+ENTER
@@ -69,6 +69,7 @@ public abstract class TestConsoleProperties extends StoringPropertyContainer imp
private ConsoleView myConsole;
private boolean myUsePredefinedMessageFilter = true;
private GlobalSearchScope myScope;
private boolean myPreservePresentableName = false;
protected final Map<AbstractProperty, List<TestFrameworkPropertyListener>> myListeners = ContainerUtil.newHashMap();
@@ -109,6 +110,14 @@ public abstract class TestConsoleProperties extends StoringPropertyContainer imp
return scope;
}
public boolean isPreservePresentableName() {
return myPreservePresentableName;
}
public void setPreservePresentableName(boolean preservePresentableName) {
myPreservePresentableName = preservePresentableName;
}
public <T> void addListener(@NotNull AbstractProperty<T> property, @NotNull TestFrameworkPropertyListener<T> listener) {
List<TestFrameworkPropertyListener> listeners = myListeners.get(property);
if (listeners == null) {