Re: What tests to write?

From: Date: Fri, 09 May 2008 13:39:24 +0000
Subject: Re: What tests to write?
Groups: php.qa 
Request: Send a blank email to php-qa+get-64297@lists.php.net to get a copy of this message
Hi, I've modified this script to list methods as well as functions and output the data in csv format. It optionally takes an extension argument which will limit the data to one particular extension. I've checked it into cvs at PHP_5_3/scripts/dev/find_tested.php. We used the output from this script to target tests for the DOM extension at last night's London TestFest. Steve zoe 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. > > Zoe

« previous php.qa (#64297) next »