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

README.md « javascript « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e34fdff0768ba5bc241da8b4c69a5132d5ecf2b (plain)
1
2
3
4
5
6
7
8
9
10
# JavaScript Tests

## Setup
Javascript integration tests require an installed Piwik and ensure the `[database_tests]` section in `piwik/config/config.ini.php` is set up correctly, i.e. with th correct password to prevent the following error: `SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)`

The tests will create a database named `tracker_tests` and store several tracking requests in it.

## Execute

Either open http://piwik.example.com/tests/javascript/ in a browser or execute `phantomjs testrunner.js` on the command line. You can download PhantomJS here: http://phantomjs.org/