Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Red flag running Core unit tests, either on Jessie and Precise #6651

Closed
tassoman opened this issue Nov 12, 2014 · 6 comments
Closed

Red flag running Core unit tests, either on Jessie and Precise #6651

tassoman opened this issue Nov 12, 2014 · 6 comments
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.

Comments

@tassoman
Copy link
Contributor

Ciao,
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)
debian testing
ubuntu server

This issues follows this forum post

@mattab
Copy link
Member

mattab commented Nov 12, 2014

Thanks for report, can you please paste the full text of the error here? cheers

@tassoman
Copy link
Contributor Author

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 😨

@tassoman
Copy link
Contributor Author

I've tried to log into a file but disk space has gone, looks like a loop

debian testing

@tassoman
Copy link
Contributor Author

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 😆

@mattab
Copy link
Member

mattab commented Dec 1, 2014

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?

@mattab mattab added Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. labels Dec 1, 2014
@mattab mattab added this to the Short term milestone Dec 1, 2014
@tassoman
Copy link
Contributor Author

tassoman commented Dec 1, 2014

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.

@mattab mattab closed this as completed in 1393a9c Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

2 participants