Updates:
Labels: -Priority-Medium Priority-High Target-2.8.2
Comment #10 on issue 519 by pekka.klarck: Given/When/Then should support
other languages than English
http://code.google.com/p/robotframework/issues/detail?id=519
I would like to see some kind of support for non-English prefixes already
in RF 2.8.2. A simple solution would be adding `--bddprefixes` or
`--gherkinprefixes` option that just takes a list of prefixes to ignore.
This ought to be easy to implement and would also support any possible
language.
A drawback would be that using it would be a bit cumbersome, but it would
be possible to create a start-up script that sets needed prefixes. A
configuration file where default values for options like this could be
defined would be really handy, but that's too much work for RF 2.8.2. A
simpler idea, something that could be done in 2.8.2, is reading additional
command line options from ROBOT_OPTIONS environment variable. You could,
for example, define that environment variable so that it contains
`--BddPrefixes gegeben:wenn:dann:und:außerdem:sei`. How would that sound?
Needing to specify the prefixes isn't as convenient than just selecting the
language. The best way to implement that would probably be using
Cucumber's "official" Gherkin prefixes somehow. That's too much work for RF
2.8.2, though, and we probably would anyway need a way to use custom
prefixes.
My proposal is:
1) Implement a way to specify what prefixes to ignore when matching
keywords. Use current Given/When/Then/And by default. Open questions:
1a) What option name? --BddPrefix, --GherkinPrefix, or something else? I
like the latter more but don't have a strong opinion. Notice that these
options are always case-insensitive.
1b) Should the specified prefixes be used in addition or instead of the
default prefixes? I think instead is better, the default prefixes can be
specified explicitly if needed.
2) Add support for reading command line options from an environment
variable. This requires a separate issue. Open questions:
2a) What variable name ROBOT_OPTIONS, ROBOT_CLI_OPTIONS, or something else?
I prefer the former.
2b) Should these options be first or last in the real argument list? I
think first, because then they can be overwritten by options from the
command line.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.