Ruby 黄瓜标签未被识别
我有一个愚蠢而奇怪的问题。 我从一位同事那里接管了一个基于BDD和ruby的测试套件。 在要素文件的顶部有几个标记,可以正常工作Ruby 黄瓜标签未被识别,ruby,testing,tags,cucumber,bdd,Ruby,Testing,Tags,Cucumber,Bdd,我有一个愚蠢而奇怪的问题。 我从一位同事那里接管了一个基于BDD和ruby的测试套件。 在要素文件的顶部有几个标记,可以正常工作 @webview Feature: As a product owner I want to blah blah So that blah blah 如果我在场景顶部添加一个标记,它将无法识别 @runagain Scenario: Sign in Given.. When .. Then.. 当我跑的时候 D:\application\tests\
@webview
Feature:
As a product owner
I want to blah blah
So that blah blah
@runagain
Scenario: Sign in
Given..
When ..
Then..
D:\application\tests\cucumber>cucumber -p default -t @runagain
Using the default profile...
0 scenarios
0 steps
0m0.003s
更新:
黄瓜
<% run_without_these_tags = "--tags ~@wip --tags ~@manual --tags ~@out_of_scope --tags ~@ignore --tags ~@pending" %>
<% overnight_tags = "--tags ~@wip --tags ~@manual --tags ~@out_of_scope --tags ~@ignore" %>
<% require_features_directory = "-r features" %>
<% publish_to_testrail = "--format Cukerail::Sender --out dummy --format pretty" %>
default: <%= run_without_these_tags %> <%= require_features_directory %> --format pretty
默认值:--格式漂亮
这是我发布的最愚蠢的查询。但这让我感到困扰,也许有人能帮我指出我需要做的简单更改/一个要撤消的错误。功能级标记有效吗?您的配置文件默认值是否会覆盖@runreach标记?我不确定这些配置的优先级…如果您尝试
D:\application\tests\cucumber>cumber-p default-t@runreach-t@webview
,测试是否会运行?默认配置文件中有什么内容?这将有助于了解它,因为它可能会限制scenario标记。现有的功能级别标记可以工作。但我不能在旁边添加一些东西,让它发挥作用。在说明中添加了默认配置文件行。功能级别标记是否有效?您的配置文件默认值是否会覆盖@RunReach标记?我不确定这些配置的优先级…如果您尝试D:\application\tests\cucumber>cumber-p default-t@runreach-t@webview
,测试是否会运行?默认配置文件中有什么内容?这将有助于了解它,因为它可能会限制scenario标记。现有的功能级别标记可以工作。但我不能在旁边添加一些东西,让它发挥作用。在说明中添加了默认纵断面线。