warden
warden copied to clipboard
Use PHPStorm Test runner for phpunit tests
Is there any way to use the default PHPStorm test runner to run PHPUnit tests directly in the IDE?
I followed https://alejandrocelaya.blog/2017/02/01/run-phpunit-tests-inside-docker-container-from-phpstorm/, which makes it possible to use a PHP interpreter from a docker image, but when I set up everything like written down there, I directly get the error message Unknown MySQL server host 'tmp-mysql'
.
That makes sense, as PHPStorm can not connect to our DB from outside.
Is there any approach to that?
Just an untested idea: you could generate a docker-compose file using warden env config > docker-compose.yaml
. Then you could assign a remote interpreter from Docker Compose in PhpStorm.
This comment in #21 explains how to set it up. Be aware that I am having a lot of issues with it, though, including long run times and random exits without errors.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
It would be awesome, if an explanation how to set it up could be added to the docs.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
+1. Would really appreciate a stable solution described in the docs
Going to try to bump this, I've been trying to get this to work for some time and I'm at my wit's end.