Current behavior
Cypress 13 Module API returns bogus results that breaks our scripts. The changelog mentions a breaking change, but the related issue #23805 is different from what I am reporting here.
EDIT: confirmed - the only issue is with missing skipped stats
For example:
totalDuration is NaN
totalSkipped is NaN
startedTestsAt is undefined
endedTestsAt is undefined
runs.stats.duration is undefined
runs.stats.endedAt is undefined
runs.stats.startedAt is undefined
runs.stats.skipped is missing
{
~totalDuration: NaN,~
totalSuites: 1,
totalPending: 0,
totalFailed: 2,
~totalSkipped: NaN,~
totalPassed: 1,
totalTests: 3,
~startedTestsAt: undefined,~
~endedTestsAt: undefined,~
runs: [
{
stats: {
~duration: undefined~,
~endedAt: undefined~,
failures: 2,
passes: 1,
pending: 0,
~startedAt: undefined~,
suites: 1,
tests: 3
},
reporter: 'spec',
reporterStats: {
suites: 1,
tests: 3,
passes: 1,
pending: 0,
failures: 2,
start: '2023-08-29T17:44:14.712Z',
end: '2023-08-29T17:44:27.024Z',
duration: 12312
},
spec: {
absolute: 'xxx',
fileExtension: '.js',
fileName: 'xxx',
name: 'xxx.js',
relative: 'cypress/e2e/xxx.js'
},
error: null,
video: '/Users/debugbit/frontend/cypress/videos/xxx.js.mp4',
shouldUploadVideo: true,
hooks: undefined,
tests: [
// ...
]
}
]
}
Desired behavior
Properly set the return value of cypress.run
Test code to reproduce
Ever invocation of cypress.run
Cypress Version
13.0.0
Node version
v16.17.1
Operating System
macOS 13.0
Debug Logs
No response
Other
Thanks a lot for your help!
Current behavior
Cypress 13 Module API returns bogus results that breaks our scripts. The changelog mentions a breaking change, but the related issue #23805 is different from what I am reporting here.
EDIT: confirmed - the only issue is with missing
skippedstatsFor example:
totalDurationisNaNtotalSkippedisNaNstartedTestsAtisundefinedendedTestsAtisundefinedruns.stats.durationisundefinedruns.stats.endedAtisundefinedruns.stats.startedAtisundefinedruns.stats.skippedis missingDesired behavior
Properly set the return value of
cypress.runTest code to reproduce
Ever invocation of
cypress.runCypress Version
13.0.0
Node version
v16.17.1
Operating System
macOS 13.0
Debug Logs
No response
Other
Thanks a lot for your help!