mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
testrunner: don't increase failed tests number if same test fails multiple times (IDEA-152905)
This commit is contained in:
+4
@@ -42,6 +42,7 @@ import com.intellij.openapi.progress.Task;
|
||||
import com.intellij.openapi.progress.impl.BackgroundableProcessIndicator;
|
||||
import com.intellij.openapi.progress.util.ColorProgressBar;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.Pass;
|
||||
import com.intellij.openapi.util.io.FileUtilRt;
|
||||
@@ -121,6 +122,7 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
private Alarm myUpdateQueue;
|
||||
private Set<Update> myRequests = Collections.synchronizedSet(new HashSet<Update>());
|
||||
private boolean myDisposed = false;
|
||||
private SMTestProxy myLastFailed;
|
||||
|
||||
public SMTestRunnerResultsForm(@NotNull final JComponent console,
|
||||
final TestConsoleProperties consoleProperties) {
|
||||
@@ -400,6 +402,8 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
}
|
||||
|
||||
public void onTestFailed(@NotNull final SMTestProxy test) {
|
||||
if (Comparing.equal(test, myLastFailed)) return;
|
||||
myLastFailed = test;
|
||||
updateOnTestFailed(false);
|
||||
if (test.isConfig()) {
|
||||
myStartedTestCount++;
|
||||
|
||||
Reference in New Issue
Block a user