diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-01 11:06:29 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-01 11:06:29 +0400 |
commit | f927ccdf2de403bc0323ba0418b6dc88c876aaaa (patch) | |
tree | 3cb73424b00c11eb84d7d742139534a40c3cd0ee /tests/README.md | |
parent | d24c6571b8511813a5a90ee19c8957c44daf5f46 (diff) |
Refs #5031 Now getting PHPUnit from composer/packagist. This will make like better for core team devs
Updating readme with instructions.
I also hope this will solve the Autoloader issue on the UI build: https://travis-ci.org/piwik/piwik-ui-tests
Diffstat (limited to 'tests/README.md')
-rw-r--r-- | tests/README.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/README.md b/tests/README.md index 6dac088406..76978dfb54 100644 --- a/tests/README.md +++ b/tests/README.md @@ -41,14 +41,15 @@ To execute the tests: ## PHPUnit Tests -1. Install PHPUnit on your system - - $ cd your/php/directory - $ sudo pear upgrade PEAR - $ pear config-set auto_discover 1 - $ sudo pear install --alldeps pear.phpunit.de/PHPUnit +1. To install PHPUnit, run `php composer.phar update` in the Piwik root directory. + + If you were already using PHPUnit using PEAR, delete the PEAR PHPUnit: - Doc at: http://www.phpunit.de/manual/current/en/installation.html + sudo rm /usr/bin/phpunit + # Create a symlink to the piwik/vendor/bin/phpunit + sudo ln -s ~/dev/piwik-master/vendor/bin/phpunit /usr/bin/phpunit + + See doc at: http://www.phpunit.de/manual/current/en/installation.html 2. Configure PHPUnit: Copy the file `piwik/tests/PHPUnit/phpunit.xml.dist` to `phpunit.xml`. In this file, you will find the following lines. @@ -62,7 +63,6 @@ To execute the tests: i.e. with the correct password to prevent the following error: `SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)` - 4. Run the tests $ cd /path/to/piwik/tests/PHPUnit |