Re: Multiple Unit Test formats in PEAR, a solution?

From: Date: Mon, 10 Oct 2005 20:01:56 +0000
Subject: Re: Multiple Unit Test formats in PEAR, a solution?
References: 1 2 3  Groups: php.pear.dev php.pear.dev 
Request: Send a blank email to pear-dev+get-40128@lists.php.net to get a copy of this message
Sebastian Bergmann wrote: > Greg Beaver schrieb: > >>However, even better than this would be if Sebastian would define a >>required format for organizing PHPUnit-based tests in PEAR, or at least >>a standard file that can be used to parse out tests to be run. > > > Consider PHPUnit2's own test suite [1] to be that standard (which is > documented in the "PHPUnit Pocket Guide" [2] which will be released > under a Creative Commons license later this month). > > Best, > Sebastian > > -- > [1] http://cvs.php.net/pear/PHPUnit2/Tests/ > [2] http://www.phpunit.de/pocket_guide/ > As the pocket guide is not online, a helpful "do this" or better yet a patch against the doRunTests() method in PEAR/Command/Package.php would be better than the above links. However, as I see it from a cursory look, all we should do is search for an "AllTests.php" file in "Tests" (which should be "tests" according to CS but whatever). and simply include it. This would be with a -u or --phpunit switch, so that: pear run-tests -pu Packagename would try to include data_dir/Packagename/[T|t]ests/AllTests.php Greg

« previous php.pear.dev (#40128) next »