Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 636 Bytes

File metadata and controls

39 lines (23 loc) · 636 Bytes

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