黄瓜标签即使被排除也会运行(我认为)

Tyl*_*lan 2 ruby tags cucumber

这就是我在cygwin中输入的内容:

cucumber.bat features -p super
Run Code Online (Sandbox Code Playgroud)

这是超级简介:

super: FIG_NEWTON_FILE=local.yml --no-source --color --tags ~@nonsuper,~@unimplemented --format pretty  
Run Code Online (Sandbox Code Playgroud)

这是我想跳过的测试示例:

@nonsuper  
Scenario: Try to set denial specials
  Then the "Denial Specialist" field is disabled at the "summary" view
Run Code Online (Sandbox Code Playgroud)

它正在运行具有这些标记的方案和功能.

我相信我在个人资料中做错了什么,我只是弄不清楚是什么.

谢谢你的帮助=]

Jus*_* Ko 5

当你这样做时:

--tags ~@nonsuper,~@unimplemented
Run Code Online (Sandbox Code Playgroud)

这意味着在没有标签的情况下运行方案@nonsuper或没有标签@unimplemented.您的方案符合没有@unimplemented标记的要求,因此它会运行.

你想要的是:

--tags ~@nonsuper --tags ~@unimplemented
Run Code Online (Sandbox Code Playgroud)

这意味着没有标签运行的情况@nonsuper和没有标记@unimplemented.

有关组合标签的更多详细信息,请参阅Cucumber wiki标签部分.