Re: Re: QA enhancements in PEAR 1.4
| From: | Lukas Smith | Date: | Sun, 27 Mar 2005 08:57:48 +0000 |
| Subject: | Re: Re: QA enhancements in PEAR 1.4 | ||
| References: | 1 2 3 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2640@lists.php.net to get a copy of this message | ||
Ryan King wrote:
On Mar 26, 2005, at 10:01 AM, Lukas Smith wrote:unfortunately this is not the case also I have multiple tests and it would be nice to be able to pass information about the number of passed and failed tests to the end result of the run-tests call as well regards, LukasGreg Beaver wrote:This might be an annoying way to go about this, but you could always write little wrapper .phpt's: --TEST-- test for this feature --FILE-- <?php require 'clitest.php'; echo 'tests done'; //this assumes that your tests only output something when an error occurs --EXPECT-- tests doneI just wanted to let all you QA types know that PEAR 1.4.0a9 includes a new option to the run-tests command that allows the running of all installed .phpt tests in a package with pear run-tests -p Packagename. For instance, you can pear run-tests -p XML_Parser. If your system is like mine, all of the tests will fail :), but it will locate and run them. This will be invaluable for testing the first stable release of a package that provides unit tests.btw: i never spend any time on this, but maybe someone knows: how hard would it be for me to also be able to run my phpunit tests this way? .. i have a clitest.php to be able to run the tests form the shell.