Skip to content

Commit

Permalink
Resolves #15: classExecutionTime is now rounded to the 3rd place afte…
Browse files Browse the repository at this point in the history
…r the comma
  • Loading branch information
achudzik committed Jan 23, 2015
1 parent 289d111 commit 55227a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_profiling.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ allprojects {
report.delete()
report << testprofiling_headers
Map<String, Double> 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, Double>

String testExecutionResult = testExecutionResults.collect { new ReportRow(project.path, it, classExecutionTime[it.testClassName]) }
.sort(testprofiling_comparator)
.collect(rowFromReport()).join('\n')
Expand Down

0 comments on commit 55227a6

Please sign in to comment.