From 55227a67ad31a63510798780eefde0f5d17431ea Mon Sep 17 00:00:00 2001 From: Adam Chudzik Date: Thu, 22 Jan 2015 01:03:48 +0100 Subject: [PATCH] Resolves marcingrzejszczak/gradle-test-profiler#15: classExecutionTime is now rounded to the 3rd place after the comma --- test_profiling.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_profiling.gradle b/test_profiling.gradle index 78aabdc..0c3ed87 100644 --- a/test_profiling.gradle +++ b/test_profiling.gradle @@ -84,8 +84,9 @@ allprojects { report.delete() report << testprofiling_headers Map classExecutionTime = testExecutionResults.groupBy { it.testClassName }.collectEntries { - [it.key, it.value.sum { it.testExecutionTime } as Double] + [it.key, (it.value.sum { it.testExecutionTime } as Double).round(3)] } as Map + String testExecutionResult = testExecutionResults.collect { new ReportRow(project.path, it, classExecutionTime[it.testClassName]) } .sort(testprofiling_comparator) .collect(rowFromReport()).join('\n')