【问题标题】:Example of a scenario written in Gherkin Pirate用 Gherkin Pirate 编写的场景示例
【发布时间】:2013-01-29 14:58:05
【问题描述】:

据我所知,Gherkin 支持多种不同的语言,包括 Pirate

有人可以列出海盗中的关键字示例,以及某个场景可能听起来像什么,或者知道某个网站列出了一些示例吗?

【问题讨论】:

  • 为什么要在海盗中写剧本?
  • Arrgh,让我写盗版应用程序,天哪 ;-)
  • 我希望我能多次投票。

标签: cucumber specflow gherkin


【解决方案1】:

要获得完整的关键字列表,只需运行cucumber --i18n en-pirate

目前返回:

  | feature          | "Ahoy matey!"            |
  | background       | "Yo-ho-ho"               |
  | scenario         | "Heave to"               |
  | scenario_outline | "Shiver me timbers"      |
  | examples         | "Dead men tell no tales" |
  | given            | "* ", "Gangway! "        |
  | when             | "* ", "Blimey! "         |
  | then             | "* ", "Let go and haul " |
  | and              | "* ", "Aye "             |
  | but              | "* ", "Avast! "          |
  | given (code)     | "Gangway"                |
  | when (code)      | "Blimey"                 |
  | then (code)      | "Letgoandhaul"           |
  | and (code)       | "Aye"                    |
  | but (code)       | "Avast"                  |

还可以尝试cucumber --i18n help 以查看所有其他可能的语言(包括 Scouse 和澳大利亚...)

【讨论】:

  • 在像海盗日一样的谈话中投票给这个人,希望人们也可以像海盗一样进行测试。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多