This repository has been archived by the owner on May 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is related to cucumber/cucumber-js#34. Please note that this *will fail* with the current master of cucumber/cucumber-js.
- Loading branch information
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,39 @@ | ||
Feature: Internationalization (I18n) | ||
Feature: Internationalization (I18n) | ||
|
||
Cucumber supports feature files written in many different languages. | ||
A feature written in another than the default language (English) | ||
must start with a comment line in the following form | ||
"# language: <code>" | ||
where <code> refers to a two-letter (ISO 639-1) language code. | ||
|
||
Scenario: A non-english Feature | ||
Given the following feature: | ||
""" | ||
# language: de | ||
Funktionalität: Ein Feature | ||
Szenario: Ein Szenario | ||
Wenn ich "A" sage | ||
Dann muss ich auch "B" sagen | ||
""" | ||
When Cucumber runs the feature | ||
Then the feature passes | ||
|
||
Scenario: Only One Language per File | ||
The "# language: <code>"-directive is ignored if it is not the | ||
very first non-empty line in the file. | ||
|
||
Given the following feature: | ||
""" | ||
Feature: some feature | ||
# language: de | ||
Scenario: some scenario | ||
When I say "A" | ||
Then I must say "B" as well | ||
""" | ||
When Cucumber runs the feature | ||
Then the feature passes | ||
|