ruby - 给定“-S”参数时的黄瓜最小测试错误
问题描述
我有一个工作套件 Ruby cucumber 测试,到目前为止,它已被调用
cucumber -S --tags "not @ignore"
我根据标签将测试分成组并使用格式化程序,因此调用现在类似于
cucumber -S --format pretty --out /tmp/pretty --format json --out /tmp/json --tags "(not @ignore) and not (@foo or @bar or @baz)"
哪个有效,但是这个类似的调用(除了--tags
)
cucumber -S --format pretty --out /tmp/pretty --format json --out /tmp/json --tags "(not @ignore) and @foo and not (@bar or @baz)"
向标准输出打印投诉
invalid option: -S
minitest options:
-h, --help Display this help.
--no-plugins Bypass minitest plugin auto-loading (or set $MT_NO_PLUGINS).
-s, --seed SEED Sets random seed. Also via env. Eg: SEED=n rake
-v, --verbose Verbose. Show progress processing files.
-n, --name PATTERN Filter run on /regexp/ or string.
-e, --exclude PATTERN Exclude /regexp/ or string from run.
-S
选项是--strict
根据的,为什么cucumber --help
这个 -S 参数没有被解释?为什么错误显然来自 minitest gem?为什么它只出现在某些--tags
表情上?
解决方案
推荐阅读
- vhdl - 如何在 VHDL 中将新行写入文件?
- node.js - 函数中的Node.js mysql返回未定义
- python - 找不到硒元素
- unity3d - 尝试在 WebGL 中加载可寻址对象时出错
- python - Tkinter 使用鼠标调整画布上的矩形大小
- python - 在 3 个不同的分类器上使用相同的数据集会输出相同的混淆矩阵/准确度分数
- php - 获取用户 ID 并将其分配给项目表行 2x 表
- spring - 按日期范围分组的 Spring 数据 Elasticsearch 计数
- excel - 如何分解一个非常大的excel文件
- javascript - 尝试将数据快照放入我想要的类时出现问题