Test cases/ extension check
| From: | Zoe Slattery | Date: | Wed, 13 Jun 2007 15:13:15 +0000 |
| Subject: | Test cases/ extension check | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-34922@lists.php.net to get a copy of this message | ||
Hi -
When we check which extensions are need to be loaded to run a test case, is it reasonable to assume that that PCRE is always loaded? As run-tests.php requires it I think it probably doesn't need an additional check in the test case.
What is the best way to make sure that we have checked to see if a test case requires a particular extension? (I mean apart from the author just knowing what they are using :-))
The only way I found so far is to have a second PHP build which has been configured with --disable-all and to run test cases against this then fix up (add SKIPIF) if they rely on extensions which aren't loaded. I can see this being a bit painful if a test requires several extensions as we'd have to keep rebuilding with more extensions enabled... what I really want is something to scan a test case and tell the developer that they are using x, y and z extensions.....
Zoe Slattery
IBM