Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - implement a queue or generator to handle test suites #1921

Closed
llaville opened this issue Oct 20, 2015 · 3 comments
Closed

Comments

@llaville
Copy link

PHPUnit suffer from its legacy architecture, because we have to wait final tests count, before starting at least first of them.

In my case, I've one hundred of *Test.php files that produced about 4800 unit tests (using data provider).
When I run full tests suite, I've to wait a long time before to see any dot in stdout (default printer results), time while PHPUnit count all tests, then after results come quickly.

My suggestion will be to implement a generator solution that will proceed to each *Test.php file ASAP !
Hope my explains are enough.

@llaville
Copy link
Author

I've found an alternative with a phing task.
See llaville/php-compatinfo-db@23230c7

CAUTION: the phar distrib used with phunit.pharlocation phing property should have require_onceinstead of require (see #1924)

@sebastianbergmann
Copy link
Owner

Duplicate of #10.

@llaville
Copy link
Author

Just to let you know that I've implemented in Phing PHPUnitTask an alternative solution based on PHP 5.5 generator feature. It will be proposed next week. See http://www.phing.info/trac/ticket/1222

In waiting for native PHPUnit solution with #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants