Link Search Menu Expand Document


A PHP framework for Behaviour-Driven Development. More information:

  • Initialize a new Behat project:

behat --init

  • Run all tests:


  • Run all tests from the specified suite:

behat --suite {{suite_name}}

  • Run tests with a specific output formatter:

behat --format {{pretty|progress}}

  • Run tests and output results to a file:

behat --out {{path/to/file}}

  • List the definitions in your test suites:

behat --definitions