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)")
2121 . trim ( )
2222 . replace ( "Total Fail" , "" ) ;
2323
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+
2434const passedTests = parseInt ( totalPass , 10 ) ;
2535const totalTests = parseInt ( totalCount , 10 ) ;
2636
@@ -37,7 +47,7 @@ const reportUrl = `http://${goCdServer}/go/files/${pipelineName}/${pipelineCount
3747
3848const slackMessage = {
3949 text : `Dev11, CDA SDK Full Sanity
40- *Result:* ${ resultMessage }
50+ *Result:* ${ resultMessage } . ${ durationInMinutes } m ${ durationInSeconds } s
4151*Failed Tests:* ${ totalFail }
4252<${ reportUrl } |View Report>` ,
4353} ;
You can’t perform that action at this time.
0 commit comments