Re: tests
| From: | Marcus Boerger | Date: | Sat, 13 May 2006 14:08:08 +0000 |
| Subject: | Re: tests | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23330@lists.php.net to get a copy of this message | ||
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:mail@marcus-boerger.de