olbrich / verify-ati-2011

Supporting code for 'Testing PHP Web Applications with Cucumber'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing PHP Web applications with Cucumber
by Kevin C. Olbrich, Ph.D.
iContact
kolbrich@icontact.com

SETUP:

I strongly suggest using rvm (http://beginrescueend.com) to handle setting up and installing ruby.
If you do, you will be able to install gems without using sudo.  If you insist on using the 
system ruby, it may be necessary to use sudo to install some dependencies.

* install bundler [ gem install bundler ]
* use bundler to install required gems [ bundle install ]
* start up the kohana server [ rake up ]
        The first time you run this, it may take some time as it will need to download the correct base
        image box and provision it.  You will also need to have network access during the provisioning process as it
        needs to download and install several packages for the demo server to install properly.
* Visit the first page (http://localhost:8080)

DESCRIPTION:

There are four types of testing demonstrated in this presentation:

1. Web UI in browser testing
2. Unit/Functional testing with Cuke4php
3. Remote UI testing augmented with cuke4php
4. Code Coverage

NOTE:

The first time that vagrant sets up the box, it will probably recompile the guest extensions.  Once this happens, vagrant will not be able to provision the box until it has been powered down and rebooted.  Once that happens, things should go smoothly.

About

Supporting code for 'Testing PHP Web Applications with Cucumber'


Languages

Language:PHP 88.7%Language:Ruby 7.4%Language:JavaScript 3.8%Language:Shell 0.1%Language:Perl 0.1%