Hello Oliver,

  php source comes with 'run-tests.php' script (try: php run-tests.php -h)
and currently with over 2000 test scripts. However as http://gcov.php.net
shows this triggers less than 50% of the code. That means that we do not
test a lot of out code base and hence have no way to protect us against
behavior changes in the corresponding areas. Another problem is that even
if a coverage tool like the one used in the link above detects code as
executed this does not mean that all conditions under which a priticual
piece of code can act are met. Therefor we need more tests.

See: http://cvs.php.net/viewcvs.cgi/*checkout*/php-src/README.TESTING
and: http://cvs.php.net/viewcvs.cgi/*checkout*/php-src/README.TESTING2

Note that run-tests2.php should be merged completley to run-tests.php
and that run-tests.php no longer exists.

More descriptions can be found here: http://qa.php.net/write-test.php

best regards
marcus

Saturday, May 13, 2006, 1:47:53 AM, you wrote:

> Hello Marcus,

> I read your message about the need of tests in php. Could you explain it a 
> little to me? I'd like to know more about it. I am not really familar with 
> the php sources though.

> Best Regards,

> Oliver



-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

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

Reply via email to