gpt4 book ai didi

jenkins - 截至 2019 年 2 月 18 日,还有其他人遇到 cypress.io 测试开始失败的情况吗?

转载 作者:行者123 更新时间:2023-12-03 22:07:28 24 4
gpt4 key购买 nike

由于没有对测试或测试环境进行任何更改,截至 2019 年 2 月 18 日成功运行的 cypress.io 测试现在因错误而失败。

Cypress.io 版本为 3.1.5

测试由 jenkinsfile 运行,如下所示:

sh "npx cypress run --browser chrome  --reporter mocha-multi-reporters   --reporter-options configFile=config-v1-smoke.json  --spec \"cypress/integration/smoke/*.js\"" 

错误是:

TypeError: Cannot read property 'passes' of undefined
at Spec.Base.epilogue (/var/jenkins_home/workspace/svn_ci/node_modules/mocha/lib/reporters/base.js:318:25)
at Object.onceWrapper (events.js:316:30)
at emitOne (events.js:120:20)
at Runner.emit (events.js:210:7)
at Reporter.emit (/var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/server/lib/reporter.js:239:55)
at Object.server.startWebsockets.onMocha (/var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/server/lib/project.js:296:22)
at Socket.<anonymous> (/var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/server/lib/socket.js:237:36)
at emitTwo (events.js:125:13)
at Socket.emit (events.js:213:7)
at /var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/socket/node_modules/socket.io/lib/socket.js:503:12
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)

TypeError: Cannot read property 'passes' of undefined
at Spec.Base.epilogue (/var/jenkins_home/workspace/svn_ci/node_modules/mocha/lib/reporters/base.js:318:25)
at Object.onceWrapper (events.js:316:30)
at emitOne (events.js:120:20)
at Runner.emit (events.js:210:7)
at Reporter.emit (/var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/server/lib/reporter.js:239:55)
at Object.server.startWebsockets.onMocha (/var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/server/lib/project.js:296:22)
at Socket.<anonymous> (/var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/server/lib/socket.js:237:36)
at emitTwo (events.js:125:13)
at Socket.emit (events.js:213:7)
at /var/jenkins_home/.cache/Cypress/3.1.5/Cypress/resources/app/packages/socket/node_modules/socket.io/lib/socket.js:503:12
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:18

0:9)

最佳答案

[email protected]发布于 2019-02-18。通过将 Mocha 从降级到最新版本 [email protected] ,问题得到缓解。与[email protected] ,按照 --spec 中的指定运行正确的 cypress.io 测试集。

[email protected] 中的内容正在使用 mocha 报告为 cypress.io 创建测试规范 glob 问题。

关于jenkins - 截至 2019 年 2 月 18 日,还有其他人遇到 cypress.io 测试开始失败的情况吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54778590/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com