Is there a technical difference between given
, when
and then
?
#1016
-
I (mostly?) understand the usage guidelines behind My understanding is that when a
Is that what's going on in the background? In other words, the scenario
would, once I renamed the step decorators, behave identically to the scenario
? (Call me overly detail-oriented, but I could never figure out AppleScript. Behind the apparently-natural-language code were all these unstated rules, and I was forever getting stymied by the rules.) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@dtgriscom-ta , If I understand your question....
are keywords which the step registry uses to associate the statement with functions in the |
Beta Was this translation helpful? Give feedback.
-
That's what I'm thinking. In other words, there's no functional difference between the three. (Not that I was planning on reversing their order in my scenarios, but I do like to know what's going on behind the scenes.) |
Beta Was this translation helpful? Give feedback.
-
Hi Dan,
Yes I am in violent agreement.
That said, I think this topic is broadly applicable to gherkin, not just
Behave.
I can help you with a PR to the behave docs, and I can get you in touch
with gherkin upstream.
IMHO it's unfair to ask Jens to document something that's not specific to
his project
…On Sun, Apr 17, 2022, 5:25 PM Dan Griscom ***@***.***> wrote:
I know there needs to be mental clarity, and it's important to follow the
conventions with any programming language. There's no good reason to use
the keywords backwards, and I wouldn't (at least, in production).
But, I personally work best when I understand what the reality is behind
the convention. And, I'll suggest that others may feel the same, and would
benefit from documentation that explains how each is implemented
differently, or that they all are implemented the same.
—
Reply to this email directly, view it on GitHub
<#1016 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB6D6BYSO4L325224OMQADVFR6UZANCNFSM5TT2GKBQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
@dtgriscom-ta , If I understand your question....
are keywords which the step registry uses to associate the statement with functions in the
steps
folder that have been decorated with the corresponding keyword .These keywords are established by convention and you can change them to suit other national languages (Norwegian and French are popular alternatives).