Skip to content

Commit faf7898

Browse files
committed
Nicer display of overall execution time
1 parent 4bc9ae0 commit faf7898

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/pmdtester/builders/summary_report_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def to_liquid(details, config_name)
8080
'sha' => details.branch_last_sha,
8181
'message' => details.branch_last_message
8282
},
83-
'execution_time' => details.execution_time,
83+
'execution_time' => PmdReportDetail.convert_seconds(details.execution_time),
8484
'jdk_info' => details.jdk_version,
8585
'locale' => details.language,
8686
'config_url' => config_name,

test/resources/summary_report_builder/branch_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"branch_last_sha":"test sha",
33
"branch_last_message":"test message",
44
"branch_name":"test_branch",
5-
"execution_time":121,
5+
"execution_time":121.123,
66
"jdk_version":"test version",
77
"language":"test language",
88
"pull_request":42

test/resources/summary_report_builder/expected_index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ <h2>Branch details</h2>
3737
</tr>
3838
<tr>
3939
<td class="item">Total PMD runtime</td>
40-
<td class="base">121</td>
41-
<td class="patch">121</td>
40+
<td class="base">00:02:01</td>
41+
<td class="patch">00:02:01</td>
4242
</tr>
4343
<tr>
4444
<td class="item">JDK</td>

0 commit comments

Comments
 (0)