diff options
author | ham1 <ham123.43+github@gmail.com> | 2013-07-27 04:30:50 +0400 |
---|---|---|
committer | ham1 <ham123.43+github@gmail.com> | 2013-07-27 04:30:50 +0400 |
commit | a683a5e358ab0bc7d6d339ded12d2695a75a4d80 (patch) | |
tree | c9575374d66d52a0baddc92a924b0fa4dc15b76b /tests/README.md | |
parent | 48b5de4afeeb47898278723fba80e7adc030a591 (diff) |
Update README.md
Added a step to ensure the `[database_tests]` section in `piwik/config/config.php.ini` is set up correctly.
Diffstat (limited to 'tests/README.md')
-rw-r--r-- | tests/README.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/README.md b/tests/README.md index 5fe76c5e63..0243358a49 100644 --- a/tests/README.md +++ b/tests/README.md @@ -54,8 +54,12 @@ Otherwise, if you didn't expect to modify the API outputs, it might be that your <server name="HTTP_HOST" value="localhost"/> <server name="REQUEST_URI" value="/path/to/piwik/"/> +3. Ensure the `[database_tests]` section in `piwik/config/config.php.ini` is set up correctly, + i.e. with the correct password to prevent the following error: + `SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)` -3. Run the tests (see the next section to run tests in the browser) + +4. Run the tests (see the next section to run tests in the browser) $ cd /path/to/piwik/tests/PHPUnit $ phpunit @@ -68,7 +72,7 @@ Otherwise, if you didn't expect to modify the API outputs, it might be that your to run all Core Piwik tests. You may also combine groups like `phpunit --group Core,Plugins` -4. Write more tests :) +5. Write more tests :) See ["Writing Unit tests with PHPUnit"](http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html) ## JavaScript Tests |