PHPunit with Docker without docker image name prefix
On a new project I set up PHPStorm 2018.2 with docker and PHPunit on Mac. Works so far.
But in the console output I don't get the nice dotting output from PHPunit, but for every echo I get the docker container name prefixed. This is kinda annoying when the amount of tests grows. I have to scroll for hundred of lines, just to check where a warning/error occurs.
This is how my output in the run window looks like (I cut it in the middle, but you might get the idea):
Attaching to job_worker
job_worker | PHPUnit 7.4.1 by Sebastian Bergmann and contributors.
job_worker |
job_worker |
job_worker |
job_worker | job_worker |
job_worker | job_worker |
job_worker | job_worker |
job_worker | job_worker |
....
(many many more of these lines)
....
job_worker | job_worker |
job_worker | job_worker |
job_worker | job_worker |
job_worker |
job_worker | Time: 2.49 seconds, Memory: 6.00MB
job_worker |
job_worker | OK (93 tests, 670 assertions)
job_worker exited with code 0
How do I get the usually dotted output of PHPunit and remove the container name prefix?
请先登录再写评论。
Should've been fixed in one of the latest IDE versions: https://youtrack.jetbrains.com/issue/WI-41462
Try updating to 2018.2.5.
Unfortunately I am already on latest version 2018.2.5 (built October 11th 2018). Sorry, wasn't clear enough in OP.
Above this is output of my tests on current IDE version
I don't know if there is somewhere a flag or something I can configure...
Are you using Docker or Docker-compose remote interpreter?
This is configured as Docker Compose
Could you please attach a screenshot of your PHP Unit run configuration? Can be found in Run > Edit Configurations...
Sure, although not much to configure here:
Thanks. Will check if I'm getting the same results
No luck unfortunately.
As advise at our tracker: please submit a separate report. It would be great if you could attach your project there also.
Ok, will do.
What do you mean by "attaching my project"?
A copy of your "docker-compose" file at least.
Done, new ticket: https://youtrack.jetbrains.com/issue/WI-44002?project=WI
Let me know if you need anything more.
Thanks, all good