mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sm runner: update total/started counts on suite failure (IDEA-202594)
This commit is contained in:
+7
-3
@@ -387,7 +387,8 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
myFinishedTestCount++;
|
||||
}
|
||||
else if (test.isSuite()) {
|
||||
myTotalTestCount++;
|
||||
myStartedTestCount++;
|
||||
updateTotalCount();
|
||||
}
|
||||
updateIconProgress(false);
|
||||
|
||||
@@ -716,14 +717,17 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
.add(myCurrentCustomProgressCategory != null ? myCurrentCustomProgressCategory : TestsPresentationUtil.DEFAULT_TESTS_CATEGORY);
|
||||
|
||||
myStartedTestCount++;
|
||||
updateTotalCount();
|
||||
|
||||
updateStatusLabel(false);
|
||||
}
|
||||
|
||||
private void updateTotalCount() {
|
||||
// fix total count if it is corrupted
|
||||
// but if test count wasn't set at all let's process such case separately
|
||||
if (myStartedTestCount > myTotalTestCount && myTotalTestCount != 0) {
|
||||
myTotalTestCount = myStartedTestCount;
|
||||
}
|
||||
|
||||
updateStatusLabel(false);
|
||||
}
|
||||
|
||||
private void updateProgressOnTestDone() {
|
||||
|
||||
Reference in New Issue
Block a user