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
Fix documentation for properly setting and running of Piwik Tests #10348
Fix documentation for properly setting and running of Piwik Tests #10348
Comments
If tests are ran from an already installed Piwik, it should configure everything automatically and just work from what I remember. Can you check if you have a section Mine looks like this: [database_tests]
host = "127.0.0.1"
username = "root"
password = "secure"
tables_prefix = "" I don't think the empty |
I tried running the tests using your way but I am not able to run the Integration tests. Unit Tests ran fine. Please note that I reinstalled Piwik from scratch as well. I am getting the below error log now -
|
Does the MySQL user maybe not have enough permission eg to drop a database or so? |
@tsteur - I checked the permissions and everything is setup correctly. Since this is my personal dev machine, the database user has got every permission listed. |
Today I have experienced the same problem! so there is something buggy (at least in 2.x-dev branch). Not found the solution so far. [database_tests]
host = "127.0.0.1"
username = "root"
password = ""
dbname = piwik_tests
tables_prefix = piwiktests_ (changing output:
|
Found the solution for me, as my piwik is installed in a sub-directory (at [tests]
request_uri = "/piwik-2.x-dev/"
we need to improve this and document it better both on: https://developer.piwik.org/guides/getting-started-part-1 and in the console command output |
I had the same trouble trying to set up tests at When following the instructions verbatim, I got this error trying to run unit tests
When, in the course of experimenting, I tried changing
To solve this, I copied a section from
The tests now run fine I'd be happy to submit a patch to the docs if someone can confirm that the result I have here is roughly what the docs ought to suggest. |
Thanks for posting @johnhess - a patch to the developer docs would be appreciated 👍 |
With Matomo 3.5.1 (from archive)
does not work anymore at all:
But the docs here still propose to execute that: |
@johsin18 did you run |
@sgiehl |
experienced these while setting up a new dev environment earlier Should fix matomo-org/matomo#10348
Created PR at matomo-org/developer-documentation#307 |
experienced these while setting up a new dev environment earlier Should fix matomo-org/matomo#10348
I was trying to run the Tests to make sure that my code is working, but I got the following error on starting the tests -
Apparently, there is more to setting up the database before I can run the tests.
The text was updated successfully, but these errors were encountered: