Answer the question
In order to leave comments, you need to log in
Why are phpunit tests taking so long to run?
There is a project, programmers wrote functional tests, we run them on the server through vendir/bin/phpunit
Tests run for about 2 hours + -
If I run each test in a cycle:
for i in `find ./tests/ -type f -name *Test*`; do echo $i; vendor/bin/phpunit --stop-on-failure $i; done
Answer the question
In order to leave comments, you need to log in
You need to look at the tests, and their number
Before each test , the database is usually dropped and refilled
Maybe the server is slow
I have 70 tests running for about 5-7 minutes
1gb memory, 1 processor core,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question