Re: What tests to write?
| From: | Pierre Joye | Date: | Tue, 06 May 2008 15:11:20 +0000 |
| Subject: | Re: What tests to write? | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64293@lists.php.net to get a copy of this message | ||
hi Zoe!
On Tue, May 6, 2008 at 2:55 PM, zoe <zoe.slattery@googlemail.com> wrote:
> I've added a couple of scripts to the wiki page
> here:http://wiki.php.net/qa/whattotest. Both scripts still need
> a bit of
> tidying up, both generate 5 (or so) warnings which it is safe to ignore.
>
> The first one (written by Damien Seguy) runs through a PHP source tree and
> works out which functions have no tests at all.
>
> The second one (a modified version of Damien's) lists all the tests that
> call a particular function. In some cases when tests call a function they
> are not actually testing it - for example most tests call var_dump() but
> that doesn't mean they are designed to test var_dump().
>
> Both of these can be used in conjunction with the gcov data in trying to
> work out where to add tests.
Thanks for this useful doc!
I updated it to use the GeSHi syntax hightlighter instead of linking
to pastebin, I hope you don't mind :)
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org