首页 > 解决方案 > 给定“-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表情上?

标签: rubycucumber

解决方案


推荐阅读