psychomieze/parallel-phpunit-resultprinter

如果使用gnu parallel运行,则打印测试结果

dev-master 2014-07-25 12:12 UTC

This package is auto-updated.

Last update: 2024-08-23 20:17:36 UTC


README

这是一个非常丑陋但有效的技巧,可以在使用gnu parallel运行测试时获得更美观的结果。

工作原理如下

time find -L . -name \*Test.php -path \*typo3_src/typo3/sysext/*/Tests/Functional* | parallel --gnu 'echo; echo "Running functional {} test case";  ./bin/phpunit --colors -c typo3/sysext/core/Build/FunctionalTests.xml --printer "\Parallel\PhpUnit\ResultPrinter" {}' > /dev/null
cat test.txt
rm test.txt

将以下内容添加到您的composer.json中

"psychomieze/parallel-phpunit-resultPrinter": "*@dev"

然后运行composer update。