[英]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. 我正在使用
Xdebug
在PHPUnit
上运行测试,以生成覆盖率,而且速度非常慢。
I tried using PHPdbg
but that leads to memory errors. 我尝试使用
PHPdbg
但这会导致内存错误。
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 . PHPUnit的文档提供了有关使用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. 话虽如此,我建议您看一下PCOV,以获取更快的PHP和PHPUnit代码覆盖率数据收集。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.