- Split testLoginLogout() into testBadLogin() and testLoginLogout().
- Mark testCreateSimpleArticle() as incomplete until the popup
window opened by clicking on VIEW is handled correctly.
- Disable mod_rewrite so that the test suite does not depend on it.
- Remove superfluous check for Testing_Selenium class.
- Migrate TestConfiguration.php.dist to config.xml.dist.
- Configure whitelist for code coverage information.
- Be conservative for now and only add include/ and plugins/
directories for now.
- Set addUncoveredFilesFromWhitelist="false" because not all
files are loadable (yet).
- Add documentation for code coverage reporting.
41 lines
848 B
Plaintext
41 lines
848 B
Plaintext
PHPUnit and Selenium RC
|
|
=======================
|
|
|
|
1. Install PHPUnit
|
|
|
|
$ pear channel-discover pear.phpunit.de
|
|
|
|
$ pear install phpunit/phpunit
|
|
|
|
2. Download Selenium RC and copy selenium-server.jar to
|
|
/usr/local/bin/selenium-server.jar, for instance.
|
|
|
|
|
|
Running the Tests
|
|
=================
|
|
|
|
1. Start the Selenium RC server
|
|
|
|
$ java -jar /usr/local/bin/selenium-server.jar
|
|
|
|
2. $ cd /path/to/s9y/tests
|
|
|
|
$ phpunit --configuration config.xml FrontendTest
|
|
|
|
|
|
Code Coverage
|
|
=============
|
|
|
|
1. Copy *.php to the S9Y installation directory on your webserver.
|
|
|
|
2. In your php.ini, add the following settings
|
|
|
|
auto_prepend_file = /path/to/prepend.php
|
|
auto_append_file = /path/to/append.php
|
|
|
|
3. Use
|
|
|
|
$ phpunit --configuration config.xml --coverage-html report FrontendTest
|
|
|
|
instead of the command above.
|