PHPStorm cant stop executing PHPUnit in Docker

Hello there,

When running PHPUnit with a Docker container (via a docker-compose.yml), it is not possible to stop the docker-side execution even though it has been stopped in PHPStorm - so the process continues to run.

Unfortunately, I could not find any corresponding information or settings. The alternative at the moment is to execute the test command directly on the Docker machine and stop it if necessary - then the process logically does not continue.

Are there any configuration options?

PHPStorm 2020.3.2 Build #PS-203.7148.84
Docker version 20.10.2, build 2291f61
docker-compose version 1.27.4, build 40524192

 

Thank you.

1

Could you please clarify how exactly are you stopping the execution and how do you check that it is still running?

0

same for me.
I have windows + wsl (ubuntu) + docker
I use PhpStorm 2024.2.1 RC installed in wsl and connect from windows.
I run tests and then press Ctrl+F2 for stop them.
Then I see that activity is not stopped by processor load, by docker container, by db state…

0

I have the same problem.

I run some script in a docker container using the Run dialog. This script should run continuously, with the ability to manually stop it.

After some time, I needed to stop this script. I click the Stop button - the dialog shows that the script has stopped;..

but the script continues to run (either in a separate container if we used docker compose run --rm, or in the current one if we used docker compose exec).

0

请先登录再写评论。