Software Engineer 20 years PHP, Javascript, Java TDD since 2012, BDD since 2014 - have given public talks on both.
Experimenting with Event Mapping for BDD
Oct 13, 2019 • 19 tweets • 5 min read
Writing Gherkin scenarios collaboratively can be beneficial both for business analysis, discovering the language of the domain and for the purpose of driving the code.
For both use-cases, here are some of my rules-of-thumb for writing Gherkin scenarios effectively. #bdd#ddd
Given, When and Then are analogous to the three standard stages of a test:
Arrange: arrange the system to be tested in a given state
Act: take the action that is to be tested (perform the test itself)
Assert: check that what should have happened indeed happened