Use PHPStorm Test runner for phpunit tests #575
Replies: 8 comments
-
Just an untested idea: you could generate a docker-compose file using |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
It would be awesome, if an explanation how to set it up could be added to the docs. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
+1. Would really appreciate a stable solution described in the docs |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Doing all of the above worked for me. @lfolco Can you give the above steps a try and if that works, we can integrate this into the documentation. |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions