final TestConsoleProperties testConsoleProperties =
new SMTRunnerConsoleProperties(runConfiguration, DART_FRAMEWORK_NAME, env.getExecutor());
testConsoleProperties.setUsePredefinedMessageFilter(false);
final SMTRunnerConsoleView smtConsoleView = SMTestRunnerConnectionUtil
.createConsoleWithCustomLocator(DART_FRAMEWORK_NAME, testConsoleProperties, env, new DartTestLocationProvider(), true, null);
try {
final VirtualFile dartFile = runnerParameters.getDartFile();
smtConsoleView.addMessageFilter(new DartConsoleFilter(project, dartFile));
final String workingDir = StringUtil.isEmptyOrSpaces(runnerParameters.getWorkingDirectory())
? dartFile.getParent().getPath()
: runnerParameters.getWorkingDirectory();
smtConsoleView.addMessageFilter(new DartRelativePathsConsoleFilter(project, workingDir));
}
catch (RuntimeConfigurationError ignore) {/**/}
Disposer.register(project, smtConsoleView);
return smtConsoleView;