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(), ""));
}
Aggregations