Re: AW: [PHP-QA] The new run-tests.php...

From: Date: Fri, 03 Jul 2009 22:03:58 +0000
Subject: Re: AW: [PHP-QA] The new run-tests.php...
References: 1 2 3  Groups: php.qa 
Request: Send a blank email to php-qa+get-65183@lists.php.net to get a copy of this message
Schuermann Sebastian schrieb:
Maybe add a new --COMMAND-- --SEQUENTIAL-- for things that need to be executed one after another. The more you try NOT creating bad smells in tests, the more you can execute in parallel. But I guess the mysql testcases incorporate a ressouce (the db) that can't be parallelized or decoupled. Theory meets practice ;), so a new --SEQUENTIUAL-- might help ;)
You never know what bad smell may be in the future... Currently many MySQL tests use the same table called "test". If you run two MySQL tests in parallel, concurrent accesses to the table "test" may clash and cause false positives. It is possible to change the MySQL tests to run in parallel. Every test run through run-test.php run should have its own unique PID. It can't be too hard to add that to the table names that tests may create (change table.inc). Thanks to the ("new") --CLEAN-- section all those tables can be cleaned up properly after the test run. (When it comes to changing the MySQL tests it is a bit like with this poor guy who asked me today about PDOStatement::getColumnMeta(). The fact that I don't like his request and I don't want to fix the issue he found does neither mean that it is not doable nor that it won't be done...) Ulf

« previous php.qa (#65183) next »