Writing Good BDD Scenarios

Behat and other behavioural testing tools take, as their input, a feature file with scenarios. ┬áThese scenarios, in the Gherkin format, allow for a (non-technical) human-readable expression of the requirements of a feature. ┬áThe way we write Behat scenarios has come a long way in the seven year history of the tool, so here is a brief look at how we used to write Gherkin scenarios, how they are written now, and what the advantages are of a more modern approach. Continue reading “Writing Good BDD Scenarios”