s”参数时出现ruby-minitest错误

dsf9zpds  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(153)

我有一个ruby cucumber测试的工作套件,到目前为止,它是用

  1. cucumber -S --tags "not @ignore"

我根据标记和使用格式化程序将测试分为多个组,因此调用现在类似于

  1. cucumber -S --format pretty --out /tmp/pretty --format json --out /tmp/json --tags "(not @ignore) and not (@foo or @bar or @baz)"

这是可行的,但是这个类似的调用(除了 --tags )

  1. cucumber -S --format pretty --out /tmp/pretty --format json --out /tmp/json --tags "(not @ignore) and @foo and not (@bar or @baz)"

将投诉打印到stdout

  1. invalid option: -S
  2. minitest options:
  3. -h, --help Display this help.
  4. --no-plugins Bypass minitest plugin auto-loading (or set $MT_NO_PLUGINS).
  5. -s, --seed SEED Sets random seed. Also via env. Eg: SEED=n rake
  6. -v, --verbose Verbose. Show progress processing files.
  7. -n, --name PATTERN Filter run on /regexp/ or string.
  8. -e, --exclude PATTERN Exclude /regexp/ or string from run.

这个 -S 选择是 --strict 根据 cucumber --help 那么为什么这个-s论点没有被解释呢?为什么这个错误显然来自minitest gem?为什么它只会出现在某些情况下 --tags 表达?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题