Search in sources :

Example 1 with FlexStackTraceFilter

use of com.intellij.lang.javascript.flex.FlexStackTraceFilter in project intellij-plugins by JetBrains.

the class FlexBaseRunner method createFlexUnitRunnerConsole.

public static ExecutionConsole createFlexUnitRunnerConsole(Project project, ExecutionEnvironment env, ProcessHandler processHandler) throws ExecutionException {
    FlexStackTraceFilter stackTraceFilter = new FlexStackTraceFilter(project);
    SMTRunnerConsoleProperties consoleProps = new FlexUnitConsoleProperties((FlexUnitRunConfiguration) env.getRunProfile(), env);
    consoleProps.addStackTraceFilter(stackTraceFilter);
    BaseTestsOutputConsoleView consoleView = SMTestRunnerConnectionUtil.createAndAttachConsole("FlexUnit", processHandler, consoleProps);
    consoleView.addMessageFilter(stackTraceFilter);
    Disposer.register(project, consoleView);
    return consoleView;
}
Also used : BaseTestsOutputConsoleView(com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView) SMTRunnerConsoleProperties(com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties) FlexStackTraceFilter(com.intellij.lang.javascript.flex.FlexStackTraceFilter)

Aggregations

SMTRunnerConsoleProperties (com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties)1 BaseTestsOutputConsoleView (com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView)1 FlexStackTraceFilter (com.intellij.lang.javascript.flex.FlexStackTraceFilter)1