【发布时间】: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