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?

12 comments

Should've been fixed in one of the latest IDE versions: https://youtrack.jetbrains.com/issue/WI-41462

Try updating to 2018.2.5.

0

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...

0

Are you using Docker or Docker-compose remote interpreter?

0

This is configured as Docker Compose

0

Could you please attach a screenshot of your PHP Unit run configuration? Can be found in Run > Edit Configurations...

0

 

Sure, although not much to configure here:

 

 

0

Thanks. Will check if I'm getting the same results 

 

0

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.

0

Ok, will do.

What do you mean by "attaching my project"?

0

A copy of your "docker-compose" file at least.

0

Please sign in to leave a comment.