Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-01 13:07:53 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-01 13:07:53 +0400
commita21503543c43860f21d1fcf5a282ee822f17a103 (patch)
tree9ff6b575e914f601ec32df5ea598857dac1ae872 /tests/README.md
parentff520e63c80c9447957a0a003b0670be920f611a (diff)
Refs #5031 The build is green: https://travis-ci.org/piwik/piwik we're running latest PHPUnit using composer.
Instructions to install PHPUnit, run `php composer.phar update` in the Piwik root directory. Add the PHPUnit binary path to the your PATH environment variable. For example on Linux: Edit `.bashrc` in your home directory and add the following line: export PATH=/path/to/dir:$PATH You will need to source your `.bashrc` or logout/login (or restart the terminal) for the changes to take effect. To source your `.bashrc`, in your home directory simply type $ source .bashrc See [PHPUnit doc](http://www.phpunit.de/manual/current/en/installation.html).
Diffstat (limited to 'tests/README.md')
-rw-r--r--tests/README.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/README.md b/tests/README.md
index 76978dfb54..8cfdf0ef7f 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -43,13 +43,18 @@ To execute the tests:
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:
+ Add the PHPUnit binary path to the your PATH environment variable. For example on Linux:
+ Edit `.bashrc` in your home directory and add the following line:
- 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
+ export PATH=/path/to/dir:$PATH
- See doc at: http://www.phpunit.de/manual/current/en/installation.html
+ You will need to source your `.bashrc` or logout/login (or restart the terminal) for the changes to take effect.
+ To source your `.bashrc`, in your home directory simply type
+
+ $ source .bashrc
+
+ See [PHPUnit doc](http://www.phpunit.de/manual/current/en/installation.html).
+ Note: if you were already using PHPUnit using PEAR, you may delete the PEAR PHPUnit with `sudo rm /usr/bin/phpunit`
2. Configure PHPUnit: Copy the file `piwik/tests/PHPUnit/phpunit.xml.dist` to `phpunit.xml`.
In this file, you will find the following lines.