简体   繁体   中英

How can I speed up tests with PHPUnit running with Xdebug

I'm running test on PHPUnit using Xdebug for generating coverage and it is very slow.

I tried using PHPdbg but that leads to memory errors.

I was told that I can create a filter file, and that should help. Can anyone explain to me how that would work.

The documentation for PHPUnit has information on speeding up code coverage with Xdebug . For more background information I recommend this article .

That being said, I recommend having a look at PCOV for even faster code coverage data collection for PHP and PHPUnit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM