Search in sources :

Example 1 with GeneralToSMTRunnerEventsConvertor

use of com.intellij.execution.testframework.sm.runner.GeneralToSMTRunnerEventsConvertor in project intellij-community by JetBrains.

the class AntImportTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myRootNode = new SMTestProxy.SMRootTestProxy();
    myEventsProcessor = new GeneralToSMTRunnerEventsConvertor(getProject(), myRootNode, "SMTestFramework");
    myEventsProcessor.onStartTesting();
}
Also used : SMTestProxy(com.intellij.execution.testframework.sm.runner.SMTestProxy) GeneralToSMTRunnerEventsConvertor(com.intellij.execution.testframework.sm.runner.GeneralToSMTRunnerEventsConvertor)

Example 2 with GeneralToSMTRunnerEventsConvertor

use of com.intellij.execution.testframework.sm.runner.GeneralToSMTRunnerEventsConvertor in project intellij-community by JetBrains.

the class SMTestRunnerResultsFormTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myConsoleProperties = createConsoleProperties();
    TestConsoleProperties.HIDE_PASSED_TESTS.set(myConsoleProperties, false);
    TestConsoleProperties.OPEN_FAILURE_LINE.set(myConsoleProperties, false);
    TestConsoleProperties.SCROLL_TO_SOURCE.set(myConsoleProperties, false);
    TestConsoleProperties.SELECT_FIRST_DEFECT.set(myConsoleProperties, false);
    TestConsoleProperties.TRACK_RUNNING_TEST.set(myConsoleProperties, false);
    final ExecutionEnvironment environment = new ExecutionEnvironment();
    myConsole = new SMTRunnerConsoleView(myConsoleProperties);
    myConsole.initUI();
    myResultsViewer = myConsole.getResultsViewer();
    myTestsRootNode = myResultsViewer.getTestsRootNode();
    myEventsProcessor = new GeneralToSMTRunnerEventsConvertor(myConsoleProperties.getProject(), myResultsViewer.getTestsRootNode(), "SMTestFramework");
    myEventsProcessor.addEventsListener(myResultsViewer);
    myTreeModel = myResultsViewer.getTreeView().getModel();
}
Also used : ExecutionEnvironment(com.intellij.execution.runners.ExecutionEnvironment) GeneralToSMTRunnerEventsConvertor(com.intellij.execution.testframework.sm.runner.GeneralToSMTRunnerEventsConvertor)

Aggregations

GeneralToSMTRunnerEventsConvertor (com.intellij.execution.testframework.sm.runner.GeneralToSMTRunnerEventsConvertor)2 ExecutionEnvironment (com.intellij.execution.runners.ExecutionEnvironment)1 SMTestProxy (com.intellij.execution.testframework.sm.runner.SMTestProxy)1