Z
Z
Zhandos M2013-12-23 14:42:22
PHP
Zhandos M, 2013-12-23 14:42:22

How to configure phpUnit to speed up test runs?

Hello!
I use unit tests from under codeception in the project. But unfortunately, even an empty test class starts up for almost half a minute, although the tests themselves pass quickly, it is the “warming up” of the tests that takes a lot of time. Maybe you can somehow configure phpUnit in order to speed up the speed of running tests.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Arkhipov, 2013-12-26
@Zhandos

Open Server uses the ConEmu console. Until the latest version of Open Server (4.9.0 dated December 10, 2013) there was a bug in this console, as a result of which the execution of any commands in it was very slow, the same phpUnit worked 20-30 times slower than usual (some commands even hung up) . The developer of the ConEmu console has fixed this bug and now the commands are executed very quickly, just like in a regular Windows console.
Keep this in mind if you are using the console built into Open Server and your Open Server version is below 4.9.0.

Z
Zhandos M, 2013-12-24
@Zhandos

Db module connected. With it, an empty test class runs for 15 seconds, without it for 11 seconds.
11 sec. to run one empty class, isn't that a lot?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question