LoginSignup
27
22

More than 5 years have passed since last update.

日本語でCucumberのフィーチャ書くときのキーワード

Last updated at Posted at 2012-11-28

cucumber 1.2.1 で cucumber --i18n ja を実行して確認。

キーワード 対応する日本語
feature "フィーチャ", "機能"
background "背景"
scenario "シナリオ"
scenario_outline "シナリオアウトライン", "シナリオテンプレート", "テンプレ", "シナリオテンプレ"
examples "例", "サンプル"
given "* ", "前提"
when "* ", "もし"
then "* ", "ならば"
and "* ", "かつ"
but "* ", "しかし", "但し", "ただし"
given (code) "前提"
when (code) "もし"
then (code) "ならば"
and (code) "かつ"
but (code) "しかし", "但し", "ただし"

フィーチャファイルを日本語で書く場合、ファイルの先頭に

# language: ja

と記述が必要

27
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
22