Skip to content

srinivasgowda097/IntroToBehatExample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IntroToBehatExample

The is a sample program for the SF PHP Meetup for the Intro to Behavior Driven Development with Behat event on Thursday, April 17, 2014 at Mashery.

Over the past year, Mashery took on Behavior Driven Development (BDD) style functional testing with Behat for PHP.  BDD style functional tests have been gaining popularity due to their descriptive nature and coverage of real use cases. Writing reusable scenarios for use cases is quite a tricky thing.  Steps need to be robust, to execute quickly, to speak to the use case and to handle errors cleanly.  Achieving these goals is challenging.  This talk will cover the philosophy this testing style and how to implement BDD style functional tests with Behat.

Setup

You must have the PHP version required to run the latest version of Behat 2.x. Additionally, this setup will not work on Windows (except maybe cygwin). Setup has only be tested on Apple OSX 10.9.

./setup.sh    # setup the environment
./bin/behat   # execute all tests

Patches

Always welcome.

About

The is a sample program for the [SF PHP Meetup](http://www.meetup.com/sf-php/) for the [Intro to Behavior Driven Development with Behat](http://www.meetup.com/sf-php/events/169678302/) event on Thursday, April 17, 2014 at Mashery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 82.3%
  • Gherkin 12.6%
  • Shell 5.1%