File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ const totalTests = mochawesomeReport.stats.tests;
1313const passedTests = mochawesomeReport . stats . passes ;
1414const failedTests = mochawesomeReport . stats . failures ;
1515
16+ let durationInSeconds = Math . floor ( mochawesomeReport . stats . duration / 1000 )
17+ const durationInMinutes = Math . floor ( durationInSeconds / 60 )
18+ durationInSeconds %= 60
19+
1620const resultMessage =
1721 passedTests === totalTests
1822 ? `:white_check_mark: Success (${ passedTests } / ${ totalTests } Passed)`
@@ -26,7 +30,7 @@ const reportUrl = `http://${goCdServer}/go/files/${pipelineName}/${pipelineCount
2630
2731const slackMessage = {
2832 text : `Dev11, CMA SDK Full Sanity
29- *Result:* ${ resultMessage }
33+ *Result:* ${ resultMessage } . ${ durationInMinutes } m ${ durationInSeconds } s
3034*Failed Tests:* ${ failedTests }
3135<${ reportUrl } |View Report>` ,
3236} ;
You can’t perform that action at this time.
0 commit comments