Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (30 sloc) 1.041 kB
05b4fbc @ldegen Add i18n scenarios
ldegen authored
1 Feature: Internationalization (I18n)
2
3 Cucumber supports feature files written in many different languages.
4 A feature written in another than the default language (English)
5 must start with a comment line in the following form
6 "# language: <code>"
7 where <code> refers to a two-letter (ISO 639-1) language code.
8
9 Scenario: A non-english Feature
10 Given the following feature:
11 """
12 # language: de
13
14 Funktionalität: Ein Feature
15
16 Szenario: Ein Szenario
17 Wenn ich "A" sage
18 Dann muss ich auch "B" sagen
19 """
20 When Cucumber runs the feature
21 Then the feature passes
22
23 Scenario: Only One Language per File
24 The "# language: <code>"-directive is ignored if it is not the
25 very first non-empty line in the file.
26
27 Given the following feature:
28 """
29
30 Feature: some feature
31
32 # language: de
33 Scenario: some scenario
34 When I say "A"
35 Then I must say "B" as well
36 """
37 When Cucumber runs the feature
38 Then the feature passes
39
Something went wrong with that request. Please try again.