void (int testsTotal, int finishedTestsCount, int failuresCount, int ignoredTestsCount, Long duration, long endTime) { myState.clear(); if (testsTotal == 0) { testsTotal = finishedTestsCount; if (testsTotal == 0) return; } int passedCount = finishedTestsCount - failuresCount - ignoredTestsCount; if (duration == null || endTime == 0) { //running tests formatCounts(failuresCount, ignoredTestsCount, passedCount, testsTotal); return; } //finished tests boolean stopped = finishedTestsCount != testsTotal; if (stopped) { myState.append(TestRunnerBundle.message("test.stopped") + " "); } formatCounts(failuresCount, ignoredTestsCount, passedCount, testsTotal); @NlsSafe String fragment = " – " + NlsMessages.formatDurationApproximateNarrow(duration); myState.append(fragment, SimpleTextAttributes.GRAY_ATTRIBUTES); }