File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,16 @@ const totalFail = $(".nav a:nth-child(4)")
21
21
. trim ( )
22
22
. replace ( "Total Fail" , "" ) ;
23
23
24
+ const totalTime = $ ( ".nav a:nth-child(1)" )
25
+ . text ( )
26
+ . trim ( )
27
+ . replace ( "Total Time" , "" ) ;
28
+
29
+ const milliseconds = parseInt ( totalTime . replace ( / \D / g, '' ) , 10 ) ;
30
+ const totalSeconds = Math . floor ( milliseconds / 1000 ) ;
31
+ const durationInMinutes = Math . floor ( totalSeconds / 60 ) ;
32
+ const durationInSeconds = totalSeconds % 60 ;
33
+
24
34
const passedTests = parseInt ( totalPass , 10 ) ;
25
35
const totalTests = parseInt ( totalCount , 10 ) ;
26
36
@@ -37,7 +47,7 @@ const reportUrl = `http://${goCdServer}/go/files/${pipelineName}/${pipelineCount
37
47
38
48
const slackMessage = {
39
49
text : `Dev11, CDA SDK Full Sanity
40
- *Result:* ${ resultMessage }
50
+ *Result:* ${ resultMessage } . ${ durationInMinutes } m ${ durationInSeconds } s
41
51
*Failed Tests:* ${ totalFail }
42
52
<${ reportUrl } |View Report>` ,
43
53
} ;
You can’t perform that action at this time.
0 commit comments