Search in sources :

Example 1 with PerlSMTRunnerConsoleView

use of com.perl5.lang.perl.idea.run.prove.PerlSMTRunnerConsoleView in project Perl5-IDEA by Camelcade.

the class PerlPlatformTestCase method checkTestRunResultsWithFile.

protected void checkTestRunResultsWithFile(RunContentDescriptor contentDescriptor) {
    ExecutionConsole executionConsole = contentDescriptor.getExecutionConsole();
    assertInstanceOf(executionConsole, PerlSMTRunnerConsoleView.class);
    SMTestRunnerResultsForm resultsViewer = ((PerlSMTRunnerConsoleView) executionConsole).getResultsViewer();
    TestTreeView testTreeView = resultsViewer.getTreeView();
    assertNotNull(testTreeView);
    Promise<?> promise = TreeUtil.promiseExpandAll(testTreeView);
    waitWithEventsDispatching("Failed to expand tests tree", promise::isSucceeded);
    UsefulTestCase.assertSameLinesWithFile(getTestResultsFilePath(".tests"), serializeTestNode(resultsViewer.getTestsRootNode(), ""));
}
Also used : SMTestRunnerResultsForm(com.intellij.execution.testframework.sm.runner.ui.SMTestRunnerResultsForm) PerlSMTRunnerConsoleView(com.perl5.lang.perl.idea.run.prove.PerlSMTRunnerConsoleView) TestTreeView(com.intellij.execution.testframework.TestTreeView) ExecutionConsole(com.intellij.execution.ui.ExecutionConsole)

Aggregations

TestTreeView (com.intellij.execution.testframework.TestTreeView)1 SMTestRunnerResultsForm (com.intellij.execution.testframework.sm.runner.ui.SMTestRunnerResultsForm)1 ExecutionConsole (com.intellij.execution.ui.ExecutionConsole)1 PerlSMTRunnerConsoleView (com.perl5.lang.perl.idea.run.prove.PerlSMTRunnerConsoleView)1