Re: Contributing tests
| From: | Antony Dovgal | Date: | Thu, 23 Nov 2006 11:34:53 +0000 |
| Subject: | Re: Contributing tests | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26955@lists.php.net to get a copy of this message | ||
On 11/23/2006 02:29 PM, Zoe Slattery wrote:
Hi I'm interested in understanding more about testing PHP and I'm new to this so I have a couple of questions that I'm hoping that someone on this list can answer. To start to learn about the test framework I chose the test case for levenshtein.c and modified it to get closer to complete coverage - gcov shows 92.5% on my system. My first problem was that my modified test case exposed a fairly trivial problem in the leveshtein.c code - the error handling was not quite right. I raised a defect (39559) for this and it's been fixed (thanks!!) The next problem is should I submit the modified test case? And, if so how? Is it just as simple as raising another defect? If so - what category (I can't see either tests or QA)? Is the process the same for entirely new test cases?Just send the test to this list, somebody with enough karma will commit it. Btw, the levenshtein() test is in CVS already: http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/levenshtein.phpt?view=log -- Wbr, Antony Dovgal