【发布时间】:2013-01-29 14:58:05
【问题描述】:
据我所知,Gherkin 支持多种不同的语言,包括 Pirate
有人可以列出海盗中的关键字示例,以及某个场景可能听起来像什么,或者知道某个网站列出了一些示例吗?
【问题讨论】:
-
为什么要在海盗中写剧本?
-
Arrgh,让我写盗版应用程序,天哪 ;-)
-
我希望我能多次投票。
据我所知,Gherkin 支持多种不同的语言,包括 Pirate
有人可以列出海盗中的关键字示例,以及某个场景可能听起来像什么,或者知道某个网站列出了一些示例吗?
【问题讨论】:
要获得完整的关键字列表,只需运行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 和澳大利亚...)
【讨论】: