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

Investigate why integration tests are so SLOW #3024

Closed
mattab opened this issue Mar 8, 2012 · 2 comments
Closed

Investigate why integration tests are so SLOW #3024

mattab opened this issue Mar 8, 2012 · 2 comments
Labels
Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Mar 8, 2012

It is becoming VERY painful to execute integration tests. Thanks to Benaka changes, at least now we can easily execute tests separately.

But still running one test on my dev box, for example test trunk/tests/integration/EcommerceOrderWithItems.test.php takes 5 minutes.

We could maybe:

  • Profile (xdebug) and find out why it is so slow?
  • implement quick fixes as something must be wrong or inefficient
  • or maybe there is a local change I can make on WXP to make tests faster?

It's important to take care of Piwik core team time as it is very limited. One integration test taking 5 minutes is really not acceptable!

How long does it take on your box to run trunk/tests/integration/EcommerceOrderWithItems.test.php ?

@mattab
Copy link
Member Author

mattab commented Mar 8, 2012

Note: this test (and few others) fails currently, which is still something that needs investigation.

@mattab
Copy link
Member Author

mattab commented Mar 8, 2012

Ouch I understand partially: it seems that the [Debug] always_archive_day=1 was picked up by tests! now it's much faster (35s).

@mattab mattab added this to the 1.12.x - Piwik 1.12.x milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

1 participant