PEAR run-tests and code coverage problem ?

From: Date: Tue, 26 Jun 2007 07:52:16 +0000
Subject: PEAR run-tests and code coverage problem ?
Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4365@lists.php.net to get a copy of this message
Hi, While I try for the first time the PEAR run-tests command under PEAR 1.6.1, i run in trouble when using the code coverage option. C:\wamp\php>pear -V PEAR Version: 1.6.1 PHP Version: 5.2.3 Xdebug 2.0.0RC4 was installed on my platform (see below) C:\wamp\php>php -m [PHP Modules] bcmath calendar com_dotnet ctype date dom filter ftp hash iconv json libxml mbstring mysql mysqli odbc pcre PDO pdo_sqlite Reflection session SimpleXML SPL SQLite standard tidy tokenizer wddx *xdebug* xml xmlreader xmlwriter zlib [Zend Modules] So my first attempt to test the PEAR::Log package was : C:\wamp\php>pear -c pear.ini run-tests -p Log Where I got these results Running 16 tests PASS [ 1/16] Log: Composite Handler[PEAR\tests\Log\tests\composite.phpt] PASS [ 2/16] Log: Console Handler[PEAR\tests\Log\tests\console.phpt] PASS [ 3/16] Log: Display Handler[PEAR\tests\Log\tests\display.phpt] SKIP Log: Error_Log Handler[PEAR\tests\Log\tests\error_log.phpt] SKIP Log: _extractMessage() [Zend Engine 1.0][PEAR\tests\Log\tests\extract-zend1 .phpt] SKIP Log: _extractMessage() [Zend Engine 2.0][PEAR\tests\Log\tests\extract-zend2 .0.phpt] PASS [ 7/16] Log: _extractMessage() [Zend Engine 2.2][PEAR\tests\Log\tests\extra ct-zend2.2.phpt] PASS [ 8/16] Log: Factory[PEAR\tests\Log\tests\factory.phpt] PASS [ 9/16] Log: File Handler[PEAR\tests\Log\tests\file.phpt] PASS [10/16] Log: Firebug Handler[PEAR\tests\Log\tests\firebug.phpt] PASS [11/16] Log: Levels[PEAR\tests\Log\tests\levels.phpt] PASS [12/16] Log: Null Handler[PEAR\tests\Log\tests\null.phpt] PASS [13/16] Log: Priorities[PEAR\tests\Log\tests\priority.phpt] PASS [14/16] Log: Singleton[PEAR\tests\Log\tests\singleton.phpt] FAIL [15/16] Log: Sqlite Handler[PEAR\tests\Log\tests\sqlite.phpt] SKIP Log: SQL setIdent()[PEAR\tests\Log\tests\sql_ident.phpt] wrote log to "C:\wamp\php\run-tests.log" TOTAL TIME: 00:09 11 PASSED TESTS 4 SKIPPED TESTS 1 FAILED TESTS: C:\wamp\php\pear\tests\Log\tests\sqlite.phpt Then my second attempt was with code coverage option : C:\wamp\php>pear -c pear.ini run-tests -x -p Log Where I got these results Running 16 tests FAIL [ 1/16] Log: Composite Handler[PEAR\tests\Log\tests\composite.phpt] FAIL [ 2/16] Log: Console Handler[PEAR\tests\Log\tests\console.phpt] FAIL [ 3/16] Log: Display Handler[PEAR\tests\Log\tests\display.phpt] SKIP Log: Error_Log Handler[PEAR\tests\Log\tests\error_log.phpt] SKIP Log: _extractMessage() [Zend Engine 1.0][PEAR\tests\Log\tests\extract-zend1 .phpt] SKIP Log: _extractMessage() [Zend Engine 2.0][PEAR\tests\Log\tests\extract-zend2 .0.phpt] FAIL [ 7/16] Log: _extractMessage() [Zend Engine 2.2][PEAR\tests\Log\tests\extra ct-zend2.2.phpt] FAIL [ 8/16] Log: Factory[PEAR\tests\Log\tests\factory.phpt] FAIL [ 9/16] Log: File Handler[PEAR\tests\Log\tests\file.phpt] FAIL [10/16] Log: Firebug Handler[PEAR\tests\Log\tests\firebug.phpt] FAIL [11/16] Log: Levels[PEAR\tests\Log\tests\levels.phpt] PASS [12/16] Log: Null Handler[PEAR\tests\Log\tests\null.phpt] FAIL [13/16] Log: Priorities[PEAR\tests\Log\tests\priority.phpt] FAIL [14/16] Log: Singleton[PEAR\tests\Log\tests\singleton.phpt] FAIL [15/16] Log: Sqlite Handler[PEAR\tests\Log\tests\sqlite.phpt] SKIP Log: SQL setIdent()[PEAR\tests\Log\tests\sql_ident.phpt] wrote log to "C:\wamp\php\run-tests.log" TOTAL TIME: 00:09 1 PASSED TESTS 4 SKIPPED TESTS 11 FAILED TESTS: C:\wamp\php\pear\tests\Log\tests\composite.phpt C:\wamp\php\pear\tests\Log\tests\console.phpt C:\wamp\php\pear\tests\Log\tests\display.phpt C:\wamp\php\pear\tests\Log\tests\extract-zend2.2.phpt C:\wamp\php\pear\tests\Log\tests\factory.phpt C:\wamp\php\pear\tests\Log\tests\file.phpt C:\wamp\php\pear\tests\Log\tests\firebug.phpt C:\wamp\php\pear\tests\Log\tests\levels.phpt C:\wamp\php\pear\tests\Log\tests\priority.phpt C:\wamp\php\pear\tests\Log\tests\singleton.phpt C:\wamp\php\pear\tests\Log\tests\sqlite.phpt Here are a resume of packages installed (not all), related to the problem (I think) : C:\wamp\php>pear -c pear.ini list INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: =========================================
PACKAGE                           VERSION STATE
Archive_Tar                       1.3.2   stable
Console_Getopt                    1.2.3   stable
Log                               1.9.11  stable
PEAR                              1.6.1   stable
Structures_Graph                  1.0.2   stable
Did I missed something, or is there still a nasty bug somewhere in PEAR core ? Best regards Laurent

« previous php.pear.qa (#4365) next »