【问题标题】:Cypress cucumber tags not working in windows 10赛普拉斯黄瓜标签在 Windows 10 中不起作用
【发布时间】:2021-05-21 19:51:13
【问题描述】:

以下 cypress 命令在 Mac 中有效:-

npx cypress-tags 运行 -e TAGS='@TC1' npx cypress-tags run -e TAGS='@TV1 or @TC2'

但对于 Windows 10,上述方法不起作用。我必须删除引号才能使其正常工作。 npx cypress-tags 运行 -e TAGS=@TC1

但现在删除引号后,我将无法传递多个标签。我已经尝试了以下所有方法,但到目前为止,Windows 10 中的多个标签都没有任何效果。

针对 Windows 10 尝试的解决方案:-

npx cypress-tags run -e TAGS='"@TC1 or @TC2"' // 在 Windows 10 中不工作

npx cypress-tags run -e TAGS=^'"@TC1 or @TC2"' // 在 Windows 10 中不工作

npx cypress-tags run -e TAGS=^'"”@TV1 or @TC2"”' // 在 Windows 10 中不工作

npx cypress-tags run -e TAGS='"@TC1 or @TC2"' // 在 Windows 10 中不工作

如果有人有办法让它工作,请告诉我

【问题讨论】:

    标签: tags cucumber cypress bdd cypress-cucumber-preprocessor


    【解决方案1】:

    我正在使用内置的tagging capability of the cypress-cucumber-preprocessor,这对我在 windows cmd 上的调用很有效

    yarn cypress run -e TAGS="@smoke or @final"
    

    在我的案例中,我使用的是纱线。但是应该和npx一样。

    【讨论】:

      猜你喜欢
      • 2022-11-18
      • 1970-01-01
      • 2020-10-19
      • 1970-01-01
      • 1970-01-01
      • 2013-10-21
      • 2021-11-06
      • 2020-12-23
      • 1970-01-01
      相关资源
      最近更新 更多