jlipps/paraunit

PHPUnit 的并行执行包装器

v0.1.5 2012-10-02 20:14 UTC

This package is not auto-updated.

Last update: 2024-09-14 13:52:56 UTC


README

PHPUnit 的并行包装器。运行此文件代替 PHPUnit,您可以在测试中传入要使用的并行 PHPUnit 进程数。

通过 grep 文件寻找 test*() 测试,并在单独的进程中运行,直到达到您设置的并发最大值,直到所有测试完成。这意味着 测试必须在逻辑上是独立的!

使用方法

使用 composer 安装。然后执行以下操作

--phpunit=PATH/TO/PHPUNIT```

Todo
----
* Handle more kinds of output from phpunit
* Try to use PHPUnit to get file list / test name list
* See if anything can be done about test dependencies