cvs: qaweb / write-test.php

From: Date: Tue, 13 May 2008 14:09:55 +0000
Subject: cvs: qaweb / write-test.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-64314@lists.php.net to get a copy of this message
stevseea Tue May 13 14:09:55 2008 UTC Modified files: /qaweb write-test.php Log: Added a link to coverage table on the Writing Tests QA webpage. http://cvs.php.net/viewvc.cgi/qaweb/write-test.php?r1=1.21&r2=1.22&diff_format=u Index: qaweb/write-test.php diff -u qaweb/write-test.php:1.21 qaweb/write-test.php:1.22 --- qaweb/write-test.php:1.21 Thu Apr 10 22:35:46 2008 +++ qaweb/write-test.php Tue May 13 14:09:55 2008 @@ -3,7 +3,7 @@ $TITLE = "Writing Tests [PHP-QAT: Quality Assurance Team]"; $SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__)); -/* $Id: write-test.php,v 1.21 2008/04/10 22:35:46 nlopess Exp $ */ +/* $Id: write-test.php,v 1.22 2008/05/13 14:09:55 stevseea Exp $ */ common_header(); ?> @@ -48,13 +48,15 @@ <p>Basically you can write a phpt test on one of the various php functions available. You can write a test on a basic language function (a string function or an array function) , or a function provided by one of PHP's numerous extensions -(a mysql function or a image function or a mcrypt function). You can find out what functions -already have phpt tests by looking in the <a href="http://cvs.php.net/viewvc.cgi/">html +(a mysql function or a image function or a mcrypt function).</p> +<p>You can find out what functions already have phpt tests by looking in the <a href="http://cvs.php.net/viewvc.cgi/">html version</a> of the cvs (php-src/ext/standard/tests/ is a good place to start looking - though not <i>all</i> the tests currently written are in there). If you look at the <a href="http://gcov.php.net">gcov pages</a> you can see which functions have lots of tests and which need more, although these pages only show which lines of code are covered by test cases so even if the coverage looks good there may -be more interesting tests to write - for example covering error cases. If you want more guidance than that you can always ask +be more interesting tests to write - for example covering error cases. There is also a table +<a href="tested-methods.php">here</a> that shows which functions and methods are called from PHPT tests. +<p>If you want more guidance than that you can always ask the PHP Quality Assurance Team on their mailing list (<a href="mailto:php-qa@lists.php.net">php-qa@lists.php.net</a>) where they would like you to direct your attentions.</p>

« previous php.qa (#64314) next »