Add test exec duration to report.
Xavier Ducrohet [Fri, 15 Feb 2013 01:13:13 +0000 (17:13 -0800)]
Change-Id: Ic4e82c7877ae20de5969e15e937c4b9de7fe0757

gradle/src/fromGradle/groovy/com/android/build/gradle/internal/test/report/ClassPageRenderer.java

index 5e8c345..f553389 100644 (file)
@@ -93,7 +93,9 @@ class ClassPageRenderer extends PageRenderer<ClassTestResults> {
                 Map<String, TestResult> deviceMap = results.get(device);
                 TestResult test = deviceMap.get(testName);
 
-                Element deviceTd = appendWithText(tr, "td", test.getFormattedResultType());
+                Element deviceTd = appendWithText(tr, "td",
+                        String.format("%s (%s)",
+                                test.getFormattedResultType(), test.getFormattedDuration()));
                 deviceTd.setAttribute("class", test.getStatusClass());
 
                 currentType = combineResultType(currentType, test.getResultType());