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”
Behat is a behavioural testing suite for PHP. With its Cucumber-style scenarios and PHP step definitions, it is perfect for applying test automation to Behaviour Driven Development. But with changes in the past few years in the way it is typically used, it is becoming an important tool for software design, and driving the structure of the domain.