testing-showcase

Stars
11

Installation

Database can be created using:

cd data
sqlite3 -init ../app/models/db.sql sqlite3.db
chmod 777 sqlite3.db
chmod 777 .

Running tests

Unit & integration tests

Install PHPUnit:

pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
pear install phpunit/PHPUnit_Selenium

Run unit & integration tests:

cd tests
phpunit ./app

Selenium tests

Download Selenium server (JAR):

http://selenium.googlecode.com/files/selenium-server-standalone-2.20.0.jar

Run Selenium server:

java -jar selenium-server-standalone.jar

Run selenium tests:

cd tests
phpunit ./selenium