// unit tests can be run as normal Dart apps, so add DartUnitConsoleFilter as well
final String workingDir = StringUtil.isEmptyOrSpaces(myRunnerParameters.getWorkingDirectory())
? myRunnerParameters.getDartFile().getParent().getPath()
: myRunnerParameters.getWorkingDirectory();
builder.addFilter(new DartRelativePathsConsoleFilter(env.getProject(), workingDir));
}
catch (RuntimeConfigurationError e) {
builder.addFilter(new DartConsoleFilter(env.getProject(), null)); // can't happen because already checked
}
}