I was following the Tests developers guide trying to run Core tests on latest master branch.
I've followed all the instructions on resolving dependencies (composer, imagemagick, phantomjs) but when tests are done, I got back hundreds of errors (only 5 failures).
The color attachment is Ubuntu Precise 12.04, php 5.3.10, ppa git, phantomjs got from apt.
The black/white attachment is Debian Jessie testing (8.0), php 5.6, with precompiled phantomjs 1.9
VMs are on virtualbox (1GB ram, dual cpu)
This issues follows this forum post
Thanks for report, can you please paste the full text of the error here? cheers
Well, I'm working on it, looks like config.ini.php was misconfigured at [ database_tests ] section, missing valid credentials with create database grant.
The problem now are lot of fread() feof() warnings reading fixtures :fearful:
I've tried to log into a file but disk space has gone, looks like a loop
The problem happens when Fixtures.php tries to self::downloadAndUnzip() an url can't be reach. I'm behind a proxy but I've disabled it inside config.ini.php. Tests wouldn't start with configured proxy.
Now tests wouldn't stop without proxy :laughing:
Hi @tassoman did you manage to get tests to pass? is there anything we can improve in Piwik to make it pass by default for you?
Hi Matt adding proxy support to test would add a level of complexity also. I'm not sure if would be useful because of we should test for the proxy also.
I'm not sure adding this would be useful but I could try to send a pull request about it.
The problem seems fixture can't be downloaded during tests.