[PHP-DEV] Re: [PHP-QA] Proposal for naming tests

2002-10-25 Thread Melvyn Sopacua
At 11:57 25-10-2002, Derick Rethans wrote:


to make easier maintenance and checking possible I would suggest to name
our tests more appropriate:


+1


Class:   Name:  Example:
Tests for bugs   bugbugid.phptbug17123.phpt
Tests for functions  functionname.phptdba_open.phpt
General tests for extensions extnameno.phpt dba3.phpt


+same for multiple tests on the same function.


I do not see a real use to rename tests, but IMO this is the way to go
for newly written tests. Of course renaming tests is ok too if you like
to do that :)


There's one drawback. Extensions with names after 'b' get evaluated after
the bug tests.
This is currently not a problem, but I've been playing with the thought to
introduce 'skip_ext' to speed things up:
--SKIP--
?php if(!extension_loaded('dba3')) { die(skip_ext this extension is not 
available); } ?

But of course you can just tell me to stop playing with the tought :)




Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua


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



[PHP-DEV] Re: [PHP-QA] Proposal for naming tests

2002-10-25 Thread Derick Rethans
On Fri, 25 Oct 2002, Melvyn Sopacua wrote:

 At 11:57 25-10-2002, Derick Rethans wrote:

[snip]
 
 I do not see a real use to rename tests, but IMO this is the way to go
 for newly written tests. Of course renaming tests is ok too if you like
 to do that :)
 
 There's one drawback. Extensions with names after 'b' get evaluated after
 the bug tests.
 This is currently not a problem, but I've been playing with the thought to
 introduce 'skip_ext' to speed things up:
 --SKIP--
 ?php if(!extension_loaded('dba3')) { die(skip_ext this extension is not 
 available); } ?
 
 But of course you can just tell me to stop playing with the tought :)

Hereby I tell you to stop playing with that thought :P No, serious... I 
don't think we really need this, and is speed really that important? 
(The whole suite runs in under a minute here with about 75% of the 
extensions).

Derick

--

---
 Derick Rethans   http://derickrethans.nl/ 
 JDI Media Solutions
--[ if you hold a unix shell to your ear, do you hear the c? ]-


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




[PHP-DEV] Re: [PHP-QA] Proposal for naming tests

2002-10-25 Thread Melvyn Sopacua
At 12:49 25-10-2002, Derick Rethans wrote:
[...]


 There's one drawback. Extensions with names after 'b' get evaluated after
 the bug tests.
 This is currently not a problem, but I've been playing with the thought to
 introduce 'skip_ext' to speed things up:
 --SKIP--
 ?php if(!extension_loaded('dba3')) { die(skip_ext this extension is not
 available); } ?

 But of course you can just tell me to stop playing with the tought :)

Hereby I tell you to stop playing with that thought :P No, serious... I
don't think we really need this, and is speed really that important?
(The whole suite runs in under a minute here with about 75% of the
extensions).


Well - my testmachine at home, is a Cyrix 200MMX, with 128Mb, so it runs a
little longer than that :-)
And no - it's not that important - I'm just impatient sometimes :)


Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua


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