cypress grep在迁移到cypress 10时被破坏

Ming 测试交流评论110字数 1130阅读模式
摘要我在cypress grep上使用了grepOmitFiltered选项。cypress grep像grepOmitFiltered一样工作:false,它正在读取我的所有规范文件...

我在cypress grep上使用了grepOmitFiltered选项。cypress grep像grepOmitFiltered一样工作:false,它正在读取我的所有规范文件,因为我已经将项目升级到cypress 10。这是我的柏树。配置。ts文件。你能在这个问题上支持我吗?

/// <reference types="cypress" />
import { defineConfig } from 'cypress'
export default defineConfig({
projectId: '22eajy',
reporter: 'cypress-multi-reporters',
viewportWidth: 1280,
viewportHeight: 720,
reporterOptions: {
configFile: 'reporter-config.json',
},
numTestsKeptInMemory: 1,
videoUploadOnPasses: false,
chromeWebSecurity: false,
retries: 3,
env: {
grepOmitFiltered: true,
},
video: true,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('cypress-grep/src/plugin')(on, config)
},
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
})

返回此错误:文章源自玩技e族-https://www.playezu.com/180256.html

Warning: We failed to trash the existing run results.
This error will not alter the exit code.
Error: spawn /Users/erdinc.ramanli/Library/Caches/Cypress/10.1.0/Cypress.app/Contents/Resources/app/node_modules/trash/lib/macos-trash EACCES
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
文章源自玩技e族-https://www.playezu.com/180256.html文章源自玩技e族-https://www.playezu.com/180256.html
玩技站长微信
添加好友自动发送入群邀请
weinxin
rainbow-shownow
玩技官方公众号
官方微信公众号
weinxin
PLAYEZU
 
  • 版权提示:本站仅供存储任何法律责任由作者承担▷诈骗举报◁▷新闻不符◁▷我要投稿◁
    风险通知:非原创文章均为网络投稿真实性无法判断,侵权联系2523030730
    免责声明:内容来自用户上传发布或新闻客户端自媒体,切勿!切勿!切勿!添加联系方式以免受骗。
  • 原创转载:https://www.playezu.com/180256.html
    转载说明: 点我前往阅读>>>
匿名

发表评论

匿名网友
确定