***** App.config: *****
** <language feature="..." />
This defines the default language in which feature files are written
resp. in which SpecFlow will expect that the files are written. (ie.
this defines the Gherkin keywords that SpecFlow will use to parse the
feature files)
** <language tool="..." />
This is currently not used. This was thought to be the configuration
for localizing SpecFlow itself (i.e. Messages, Tracing etc). Currently
SpecFlow supports only English.
** <bindingCulture name="..." />
This defines the culture that is used when executing steps.
This is primarily relevant for the argument-transformations when
transforming arguments from the feature-file plain-text to a non-text
argument of a step-binding method (vie the regexp capture groups).
If this is not set, the same culture as set in <language feature="..."
/> is used.
Discussed in this thread:
http://groups.google.com/group/specflow/browse_thread/thread/fb424bb1c20e765/47f25440fccabbc3?lnk=gst&q=bindingCulture#47f25440fccabbc3
Here is an example:
https://github.com/techtalk/SpecFlow/blob/master/Tests/FeatureTests/App.config
https://github.com/techtalk/SpecFlow/blob/master/Tests/FeatureTests/StepArgumentTransfomation/StepArgumentTransformationGermanFeatureEnglishBinding.feature
https://github.com/techtalk/SpecFlow/blob/master/Tests/FeatureTests/StepArgumentTransfomation/StepArgumentTransformationSteps.cs
=> Here we have set 'de' as culture through the comment in the feature
file. But the binding culture is 'en-US'
=> You can use the german sentence "Dann ist 0.2 kleiner als 1" and
the 0.2 is converted into a double even though ',' is the decimal
separator in the 'de' culture.
***** Feature file: *****
#language: en-US
This overrides the default <language feature="..." /> from App.config
for specific feature files.
I hope this has shed some light on the different configurations?
--
mail: jonas...@gmail.com
web: www.jonasbandi.net
blog: blog.jonasbandi.net
twitter: twitter.com/jbandi