10

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

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

4

1 回答 1

12

要获得完整的关键字列表,只需运行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 和澳大利亚语......)

于 2012-07-31T18:17:13.557 回答