use of com.intellij.execution.testframework.TestConsoleProperties in project intellij-plugins by JetBrains.
the class DartTestEventsConverterTest method createConsoleProperties.
protected TestConsoleProperties createConsoleProperties() {
TestConsoleProperties properties = super.createConsoleProperties();
TestConsoleProperties.HIDE_PASSED_TESTS.set(properties, false);
TestConsoleProperties.OPEN_FAILURE_LINE.set(properties, false);
TestConsoleProperties.SCROLL_TO_SOURCE.set(properties, false);
TestConsoleProperties.SELECT_FIRST_DEFECT.set(properties, false);
TestConsoleProperties.TRACK_RUNNING_TEST.set(properties, false);
return properties;
}
use of com.intellij.execution.testframework.TestConsoleProperties in project intellij-plugins by JetBrains.
the class DartTestRunningState method createConsole.
private static ConsoleView createConsole(@NotNull ExecutionEnvironment env) {
final Project project = env.getProject();
final DartRunConfiguration runConfiguration = (DartRunConfiguration) env.getRunProfile();
final DartTestRunnerParameters runnerParameters = (DartTestRunnerParameters) runConfiguration.getRunnerParameters();
final TestConsoleProperties testConsoleProperties = new DartConsoleProperties(runConfiguration, env);
final ConsoleView consoleView = SMTestRunnerConnectionUtil.createConsole(DART_FRAMEWORK_NAME, testConsoleProperties);
try {
final VirtualFile dartFile = runnerParameters.getDartFileOrDirectory();
consoleView.addMessageFilter(new DartConsoleFilter(project, dartFile));
consoleView.addMessageFilter(new DartRelativePathsConsoleFilter(project, runnerParameters.computeProcessWorkingDirectory(project)));
consoleView.addMessageFilter(new UrlFilter());
} catch (RuntimeConfigurationError ignore) {
/* can't happen because already checked */
}
Disposer.register(project, consoleView);
return consoleView;
}
use of com.intellij.execution.testframework.TestConsoleProperties in project intellij-community by JetBrains.
the class BaseSMTRunnerTestCase method createConsoleProperties.
protected TestConsoleProperties createConsoleProperties() {
final ModuleRunConfiguration runConfiguration = createRunConfiguration();
final TestConsoleProperties consoleProperties = new SMTRunnerConsoleProperties(runConfiguration, "SMRunnerTests", DefaultDebugExecutor.getDebugExecutorInstance());
TestConsoleProperties.HIDE_PASSED_TESTS.set(consoleProperties, false);
return consoleProperties;
}
use of com.intellij.execution.testframework.TestConsoleProperties in project intellij-community by JetBrains.
the class TestFrameworkActions method addPropertyListener.
public static void addPropertyListener(final AbstractProperty<Boolean> property, final TestFrameworkPropertyListener<Boolean> propertyListener, final TestFrameworkRunningModel model, final boolean sendValue) {
final TestConsoleProperties properties = model.getProperties();
if (sendValue) {
properties.addListenerAndSendValue(property, propertyListener);
} else {
properties.addListener(property, propertyListener);
}
Disposer.register(model, new Disposable() {
public void dispose() {
properties.removeListener(property, propertyListener);
}
});
}
use of com.intellij.execution.testframework.TestConsoleProperties in project intellij-community by JetBrains.
the class TestFrameworkActions method installFilterAction.
public static void installFilterAction(final TestFrameworkRunningModel model) {
final TestConsoleProperties properties = model.getProperties();
final TestFrameworkPropertyListener<Boolean> propertyListener = new TestFrameworkPropertyListener<Boolean>() {
public void onChanged(final Boolean value) {
model.setFilter(getFilter(properties));
}
};
addPropertyListener(TestConsoleProperties.HIDE_PASSED_TESTS, propertyListener, model, true);
addPropertyListener(TestConsoleProperties.HIDE_IGNORED_TEST, propertyListener, model, true);
addPropertyListener(TestConsoleProperties.HIDE_SUCCESSFUL_CONFIG, propertyListener, model, true);
}
Aggregations