void (String testId, TestEventResult result) { final SMTestProxy testProxy = findTestProxy(testId); if (testProxy == null) return; if (testProxy != getResultsViewer().getTestsRootNode()) { if (testProxy instanceof GradleSMTestProxy) { TestEventResult lastResult = ((GradleSMTestProxy)testProxy).getLastResult(); if (lastResult == TestEventResult.FAILURE) { result = TestEventResult.FAILURE; } ((GradleSMTestProxy)testProxy).setLastResult(result); } switch (result) { case SUCCESS -> testProxy.setFinished(); case FAILURE -> testProxy.setTestFailed("", null, false); case SKIPPED -> testProxy.setTestIgnored(null, null); case UNKNOWN_RESULT -> {} } getResultsViewer().onSuiteFinished(testProxy); getExecutionConsole().getEventPublisher().onSuiteFinished(testProxy); } }