File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -75373,13 +75373,18 @@ const generateSummary = async (testResults) => {
75373
75373
{ data: 'Duration :clock8:', header: true }
75374
75374
]
75375
75375
75376
+ const status =
75377
+ testResults.totalFailed === 0
75378
+ ? 'Passing :white_check_mark:'
75379
+ : 'Failing :red_circle:'
75380
+
75376
75381
const summaryRows = [
75377
- [] ,
75378
- testResults.totalPasses ,
75379
- testResults.totalFailures ,
75382
+ status ,
75383
+ testResults.totalPassed ,
75384
+ testResults.totalFailed ,
75380
75385
testResults.totalPending,
75381
75386
testResults.totalSkipped,
75382
- []
75387
+ `${testResults.totalDuration / 1000}s` || ''
75383
75388
]
75384
75389
75385
75390
// const generateSummaryRow = (run) => {
@@ -75408,7 +75413,7 @@ const generateSummary = async (testResults) => {
75408
75413
75409
75414
await core.summary
75410
75415
.addHeading('Cypress Results', 2)
75411
- .addTable([headers, ... summaryRows])
75416
+ .addTable([headers, summaryRows])
75412
75417
.addLink(
75413
75418
testResults.runUrl ? 'View Run in Dashboard' : '',
75414
75419
testResults.runUrl || ''
Original file line number Diff line number Diff line change @@ -763,13 +763,18 @@ const generateSummary = async (testResults) => {
763
763
{ data : 'Duration :clock8:' , header : true }
764
764
]
765
765
766
+ const status =
767
+ testResults . totalFailed === 0
768
+ ? 'Passing :white_check_mark:'
769
+ : 'Failing :red_circle:'
770
+
766
771
const summaryRows = [
767
- [ ] ,
768
- testResults . totalPasses ,
769
- testResults . totalFailures ,
772
+ status ,
773
+ testResults . totalPassed ,
774
+ testResults . totalFailed ,
770
775
testResults . totalPending ,
771
776
testResults . totalSkipped ,
772
- [ ]
777
+ ` ${ testResults . totalDuration / 1000 } s` || ''
773
778
]
774
779
775
780
// const generateSummaryRow = (run) => {
@@ -798,7 +803,7 @@ const generateSummary = async (testResults) => {
798
803
799
804
await core . summary
800
805
. addHeading ( 'Cypress Results' , 2 )
801
- . addTable ( [ headers , ... summaryRows ] )
806
+ . addTable ( [ headers , summaryRows ] )
802
807
. addLink (
803
808
testResults . runUrl ? 'View Run in Dashboard' : '' ,
804
809
testResults . runUrl || ''
You can’t perform that action at this time.
0 commit comments