Search in sources :

Example 6 with BaseTestsOutputConsoleView

use of com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView 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

BaseTestsOutputConsoleView (com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView)6 SMTRunnerConsoleProperties (com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties)3 DefaultExecutionResult (com.intellij.execution.DefaultExecutionResult)2 AbstractRerunFailedTestsAction (com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction)2 ToggleAutoTestAction (com.intellij.execution.testframework.autotest.ToggleAutoTestAction)2 SMTRunnerConsoleView (com.intellij.execution.testframework.sm.runner.ui.SMTRunnerConsoleView)2 NotNull (org.jetbrains.annotations.NotNull)2 GenericDebuggerRunnerSettings (com.intellij.debugger.impl.GenericDebuggerRunnerSettings)1 RunProfile (com.intellij.execution.configurations.RunProfile)1 OSProcessHandler (com.intellij.execution.process.OSProcessHandler)1 ProcessAdapter (com.intellij.execution.process.ProcessAdapter)1 ProcessEvent (com.intellij.execution.process.ProcessEvent)1 ProcessHandler (com.intellij.execution.process.ProcessHandler)1 TestFrameworkRunningModel (com.intellij.execution.testframework.TestFrameworkRunningModel)1 AbstractAutoTestManager (com.intellij.execution.testframework.autotest.AbstractAutoTestManager)1 SMTestRunnerResultsForm (com.intellij.execution.testframework.sm.runner.ui.SMTestRunnerResultsForm)1 ConsoleView (com.intellij.execution.ui.ConsoleView)1 FlexStackTraceFilter (com.intellij.lang.javascript.flex.FlexStackTraceFilter)1 Project (com.intellij.openapi.project.Project)1 PythonDebugLanguageConsoleView (com.jetbrains.python.console.PythonDebugLanguageConsoleView)1