-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Faster bootstrap for PHPUnit tests #6910
Conversation
"test", | ||
"runner" | ||
], | ||
"homepage": "http:\/\/piwik.org" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the record this file was updated by the console
Tests are failing on Travis with this:
Should I use this URL |
yes indeed, this URL will use the test DB credentials so it will use the right database |
@mattab thanks, done. |
Actually it seems it doesn't work, I get the following error on Travis:
Which makes sense. The version on master hits the home page ( |
@mnapoli maybe you need some help to troubleshoot this? |
ed8dac2
to
247911d
Compare
@mattab I'm trying something. For the record with a very simple test case I'm down from 2.4 s to 1.4s, which is actually very appreciable when running tests very often (refactoring). |
OK to be merged! |
Faster bootstrap for PHPUnit tests
When running PHPUnit tests other than unit tests, the bootstrap checks that Piwik server is running correctly.
Instead of hitting the home page (
/
302 that redirect to/index.php? CoreHome…
) which takes a couple seconds for the HTTP response, this uses a simpler and faster controller action.The TestsRunner plugin is disabled in production right? So that new controller shouldn't be a problem.