Hi Johannes,

Johannes Schlüter wrote:
On So, 2017-10-08 at 04:47 +0100, Andrea Faulds wrote:
Have you long since ABANDONED every test directory besides
Zend/tests?

... or ran only eext/foo/tests ;)

…*ahem*. Okay, enough terrible salesmanship. I felt like
parallelising
run-tests.php, so I did it. If you give it the flag -jX, it'll spawn
X
worker processes and throw batches at tests at them, and those
worker

This is cool! I also see (from very very very) short look on the github
diff that you have a parallelization protection for some tests, which
might share resources. Very good!

I'm glad you like it! Although I discover now that I am hardly the first to attempt this. Maybe I'll be the first to get it merged :p

Kind of unrelated: Somewhere on my 10+ years old todo list I also have
the item of using FastCGI or similar for running tests to avoid running
tthrough MINIT/MSHUTDOWN for each and every test (for some we can'T
avoid due to ini requirements, but well) maybe a less hackish way for
parallelizing might be using fpm workers and async io (just to spin the
idea, maybe somebody takes it up ...)

That's a reasonable idea. But I wonder if at that point, we should just use a “real” unit-testing framework, or at least a stripped-down version of one, which would run functions rather than files. PHPT is a simple format, but it requires invoking a PHP interpreter every time. We only really need to do that if we expect a fatal error or something like that… :)

--
Andrea Faulds
https://ajf.me/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to