Switch branches/tags
Find file History
Pull request Compare This branch is 70 commits behind 3.x-dev.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
assets
content-fixtures
frameworks
jash
jslint
README.md
gnome-terminal.png
index.php
piwik.php
piwiktest.js
testrunner.js

README.md

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/