PHPUnit slow when running unit tests
Hello,
I'm using Intellij IDEA Ultimate 2019.3 for running PHPUnit tests and they are very slow (8 tests completed in 1 minute) on my desktop PC whereas on my laptop they are relatively fast (4 seconds).
These are the collected logs:
idea-logs-20191202-173123.zip
idea-logs-mega-mirror
请先登录再写评论。
Not sure if IDEA can be responsible for that. It doesn't run tests, it just launches them by passing a single command. What runs them is PHP and PHPUnit.
Do you get a better running time when you start your tests on the same PC from the CMD?
Also, please check that you have Xdebug disabled for your interpreter, it can slow down execution severely.
>Do you get a better running time when you start your tests on the same PC from the CMD?
No, test time is the same. This is the cmd line
>Also, please check that you have Xdebug disabled for your interpreter, it can slow down execution severely.
These are pretty much the whole configuration to make Xdebug running for my local XAMPP server
The same configuration has been done into my laptop
Do I get it right that running those tests manually (via CMD) results in the same 4 minutes-long run?
This means that the issue isn't caused by PhpStorm but by a local config/environment itself.
On a screenshot attached you have XDebug enabled. Try to disable it by e.g. changing xdebug.remote_enable to 0
I've tried a clean PHP 7.4 interpreter and to remove all the configuration strings to load / initialize Xdebug obtaining the same test time.
I've also tried to put xdebug.remote_enable = 0 into the php.ini file but it's still the same.