Skip to content

Instantly share code, notes, and snippets.

@alexsoyes
Created September 19, 2022 02:37
Show Gist options
  • Save alexsoyes/ac7dddc92b9c101fbec0f9e763b3f394 to your computer and use it in GitHub Desktop.
Save alexsoyes/ac7dddc92b9c101fbec0f9e763b3f394 to your computer and use it in GitHub Desktop.
Behat avec Gherkin en anglais.
# from https://behat.org/en/latest/user_guide/gherkin.html
Feature: Some terse yet descriptive text of what is desired
In order to realize a named business value
As an explicit system actor
I want to gain some beneficial outcome which furthers the goal
Additional text...
Scenario: Some determinable business situation
Given some precondition
And some other precondition
When some action by the actor
And some other action
And yet another action
Then some testable outcome is achieved
And something else we can check happens too
Scenario: A different situation
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment