Behat workshop
Last reviewed 30 April 2018 by Crispin Read
Description
Behat is a tool that makes behaviour driven development (BDD) possible. With BDD, you write human-readable stories that describe the behaviour of your application. These stories can then be auto-tested against your application.
Outcomes
At the end of this training you will be able to:
- Write human readable tests to describe desired behaviours
- Run behat tests on an instance of a site or application
Learner Requirements
Outline
- What is Behat?
- Pros and cons
- Use cases
- Syntax
- Activity: Write some tests
- Setup
- Activity: Run those tests
Tasks
During Training
- Write tests based on supplied user stories
- Fix issues so that tests pass
After Training
- Write 12+ behat tests for your project