From 98f20ebe69f35609d5ea8ee83c25e2f8ac7c6db6 Mon Sep 17 00:00:00 2001 From: david_williams <david_williams> Date: Mon, 11 Aug 2008 04:52:35 +0000 Subject: [PATCH] summarize times --- .../releng/tools/ResultsSummaryGenerator.java | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/ResultsSummaryGenerator.java b/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/ResultsSummaryGenerator.java index eaf5092fc..0c0255ead 100644 --- a/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/ResultsSummaryGenerator.java +++ b/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/ResultsSummaryGenerator.java @@ -135,7 +135,6 @@ public class ResultsSummaryGenerator extends Task { private int failures = -99; private int totalTests = -99; private float time = -99; - private float totalTime = -99; int getErrors() { return errors; @@ -169,13 +168,6 @@ public class ResultsSummaryGenerator extends Task { this.time = time; } - public float getTotalTime() { - return totalTime; - } - - public void setTotalTime(float totalTime) { - this.totalTime = totalTime; - } } public static void main(String[] args) { @@ -692,7 +684,7 @@ public class ResultsSummaryGenerator extends Task { testResultsWithProblems = testResultsWithProblems.concat(EOL + testName); } - String tmp = formatTestRow(xmlFileNames[i].getPath(), errorCount, unitTestResults.getTotalTests(), unitTestResults.getTotalTime()); + String tmp = formatTestRow(xmlFileNames[i].getPath(), errorCount, unitTestResults.getTotalTests(), unitTestResults.getTime()); replaceString = replaceString + tmp; if (errorCount > 0) { @@ -957,9 +949,9 @@ public class ResultsSummaryGenerator extends Task { aString = aString + "<td CLASS=\"" + "numeric" + "\">" + String.valueOf(errorCount) + "</td>" + EOL; aString = aString + "<td CLASS=\"" + "numeric" + "\">" + String.valueOf(totalTests) + "</td>" + EOL; } - if (totalTimes > 0) { - aString = aString + "<td CLASS=\"" + "numeric" + "\">" + String.valueOf(totalTimes) + "</td>" + EOL; - } + + + aString = aString + "<td CLASS=\"" + "numeric" + "\">" + String.valueOf(totalTimes) + "</td>" + EOL; aString = aString + "</tr>" + EOL; } @@ -992,7 +984,6 @@ public class ResultsSummaryGenerator extends Task { int failureCount = 0; int totalTests = 0; float time = 0; - float totalTime = 0; try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); parser = docBuilderFactory.newDocumentBuilder(); @@ -1016,14 +1007,12 @@ public class ResultsSummaryGenerator extends Task { aNode = attributes.getNamedItem("time"); time = Float.parseFloat(aNode.getNodeValue()); - totalTime = totalTime + time; } result.setErrors(errorCount); result.setFailures(failureCount); result.setTotalTests(totalTests); result.setTime(time); - result.setTotalTime(totalTime); } catch (IOException e) { System.out.println("IOException: " + fileName); -- GitLab