Skip to content

ipij/symfony2-behat-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Behaviour driven development. Business logic.

Author

Behat Scenarios

Scenarios are placed under /features/ directory. Each feature is describd by .feature file.

Run tests

To run all Behat scenarios, just run from application directory:

$ bin/behat

To run Behat scenarios from given tag, just run:

$ bin/behat --tags tag_name

where tag_name is your @tag_name tagged features.

Application

File locations

Acceptance tests

You should check these aspects:

  • User interface:

    • Current page URL's and redirection URL's
    • Listing contents after CRUD operation
    • Response codes while testing security
    • Invalid values while submitting forms (CRUD)
  • API:

    • Response codes
    • Response contents
    • Invalid values while CRUD

Virtualbox paths

Application code is under:

cd /var/www/html/symfony2-behat-example