Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #11883 run-tests -u -p SomePackage should run the topmost "AllTests.php" file
Submitted: 2007-08-21 15:48 UTC
From: cms Assigned: cellog
Status: Closed Package: PEAR (version 1.6.1)
PHP Version: 5.2.1 OS: Linux 2.6.20
Roadmaps: 1.6.2    
Subscription  


 [2007-08-21 15:48 UTC] cms (Carl Michael Skog)
Description: ------------ When "pear run-tests -up SomePackage" is run PEAR looks for a "AllTests.php" file where it expects to find tests for the whole package. Larger packages might very well have more than one AllTests.php for testing sub packages. However, in these cases, PEAR makes no effort to find the most general(the topmost) of the AllTests.php files. Instead the AllTests.php that comes up first in a package file iteration is chosen. Test script: --------------- E.g. pear run-tests -up pear.phpunit.de/PHPUnit will trigger this bug. $test_dir/PHPUnit/PHPUnit/Tests/Extensions/AllTests.php is chosen instead of $test_dir/PHPUnit/PHPUnit/Tests/AllTests.php. Expected result: ---------------- The tests in the topmost "AllTests.php" should be chosen by the "run-tests" command. Actual result: -------------- Another "AllTests.php" than the topmost one is possibly chosen as the tests for the package whenever there is more than one.

Comments

 [2007-09-03 02:50 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.