...
- Do a normal install on the machine you wish to test on.
Create a
phpunit.xml
file in your config directory. It should contain the following settings:Code Block language xml title phpunit.xml <?xml version="1.0" encoding="UTF-8"?> <rogo> <db_database>phpunit_database_schema_name</db_database> <db_user>username</db_user> <db_password>password</db_password> <data>path_to_user_data_directory</data> </rogo>
- Run the following script from the command line: testing/unittest/cli/init.php
Info | ||
---|---|---|
| ||
You will need to install composer.phar into the root rogo directory manually from https://getcomposer.org/download/ |
Running
Warning |
---|
Ensure the php module php_pdo_mysql is enabled |
- Run the following command to run the test suite:
vendor/bin/phpunit -c testing/unittest/config/phpunit.xml
...