Behat workshop

Last reviewed 30 April 2018 by Crispin Read


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.


At the end of this training you will be able to:

  1. Write human readable tests to describe desired behaviours
  2. Run behat tests on an instance of a site or application

Learner Requirements


  1. What is Behat?
  2. Pros and cons
  3. Use cases
  4. Syntax
  5. Activity: Write some tests
  6. Setup
  7. Activity: Run those tests


During Training

  1. Write tests based on supplied user stories
  2. Fix issues so that tests pass

After Training

  1. Write 12+ behat tests for your project

Resources / Reference

  1. Intro Slides on Google Drive
  2. Demo on YouTube