【发布时间】:2020-06-08 07:54:23
【问题描述】:
当使用 cypress cucumber 预处理器时,我的 package.json 中有以下内容
"ci-test": "npx cypress-tags run -e TAGS=\"@SOMETAG and not @OTHERTAG\""
当我运行 npm run ci-test 时,它可以工作,所有带有 @OTHERTAG 的场景都会被忽略。
但是当像这样运行相同的命令时
npm run ci-$project -- --env username=$user,password=$password,loginrealm=$namespace
在 docker 容器内,它只执行所有带有 @SOMETAG 标记的测试,并忽略带有“而不是 @OTHERTAG”的命令的第二部分
让我感到困惑的是官方文档声明我应该使用类似的命令
"ci-test": "npx cypress-tags run -e TAGS='@SOMETAG and not @OTHERTAG'"
然后它没有找到任何标签。
【问题讨论】:
标签: cucumber cypress preprocessor ui-testing end-to-end