Discussion:
unit tests - 1 fails locally, 38 fail on jenkins
Daniel Convissor
2012-01-07 16:03:49 UTC
Permalink
Hi Folks:

I've done some more work on the pear-core unit tests.

There is one test that fails when I run it locally:
tests/PEAR_Command_Pickle/pickle/test.phpt

The difference is the following element is missing from the actual output:
Tag the released code with "pear svntag package2.xml"

I'm guessing it may have to do with pear-core now being in git rather
than svn.


Beyond that, there are 37 other unit tests that run fine via
"phpunit -d error_reporting=22527 tests" on my local machine but are
failing on the Jenkins server. See the list at:
http://test.pear.php.net:8080/job/PEAR/18/testReport/

Can someone with more knowledge of pear-core's workings please take a
look at these 38 tests?

Thanks,

--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
Helgi Þormar Þorbjörnsson
2012-01-07 21:43:19 UTC
Permalink
Post by Daniel Convissor
I've done some more work on the pear-core unit tests.
tests/PEAR_Command_Pickle/pickle/test.phpt
Tag the released code with "pear svntag package2.xml"
I'm guessing it may have to do with pear-core now being in git rather
than svn.
Beyond that, there are 37 other unit tests that run fine via
"phpunit -d error_reporting=22527 tests" on my local machine but are
http://test.pear.php.net:8080/job/PEAR/18/testReport/
Can someone with more knowledge of pear-core's workings please take a
look at these 38 tests?
I can try to look at that soon but if someone gets there before me, that's fine! I'm heading to the US next week so I'm not 100% sure of how much time I have in the next few days.

How do I run things on the Jenkins server? Could be hard to debug if I can't get them to fail locally (seems you have that problem right now)
Is there a way for me to either go on the server to run the outputted .php files by hand (and to edit them) or can I fetch them somehow from the Jenkins interface?

Taking a quick peak at the results, the top 3 have an issue with the temp dir, and actually a few others in between... maybe related to your recent commit of sys get temp dir?
I have not had time to review that patch fully but maybe dirname(__FILE__) or so was not only being used for tmp directory purposes but also to link to package files and tgz - I am seeing a good few tests failing due to invalid package files.

Temp problems:
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_Command_Mirror_download_all_test_normal_channel_rest_phpt/
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_PackageFile_Generator_v2_toTgz2_test_extsrc_phpt/

Example of invalid package where it shouldn't have been:
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_PackageFile_Generator_v2_toTgz2_test_fail_phpt/
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_Dependency2_test_checkPackageDependency_PEAR_url_phpt/

http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_Command_Package_package_test_bug11318_phpt/
This one is just odd... getNotes? Lacking a PEAR::isError somewhere in the test it self.

- Helgi
Daniel Convissor
2012-01-07 22:59:38 UTC
Permalink
Post by Helgi Þormar Þorbjörnsson
How do I run things on the Jenkins server? Could be hard to debug if I
can't get them to fail locally (seems you have that problem right now)
Is there a way for me to either go on the server to run the outputted
.php files by hand (and to edit them) or can I fetch them somehow from
the Jenkins interface?
On the "Manage Jenkins" page (http://test.pear.php.net:8080/manage) there
is a "Jenkins CLI" link. I don't know if that'll be of help or not, but
it sounds like something in the right direction.

Up to this point with Jenkins, I've used educated guesses to figure out
why things are failing there and then fixed them locally. With these
tests, it seemed more efficient to hand them off to someone who has more
"education" in the area.
Post by Helgi Þormar Þorbjörnsson
Taking a quick peak at the results, the top 3 have an issue with the
temp dir, and actually a few others in between... maybe related to
your recent commit of sys get temp dir?
Nay. Those same exact tests were failing with the same errors before my
change. I was hoping my change would solve the problem. Alas, not.

Thanks,

--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
Daniel O'Connor
2012-01-08 04:06:26 UTC
Permalink
How to run this on jenkins:

1) Login with your github credentials. If you are associated publically
with the pear repository, it should grant all of the rights to start
builds/etc. This should enable "build now".
Taking a look at the console output will show you the exact commands being
run.

99% of the time this is enough.

2) If that doesn't help,
ssh test.pear.php.net;
sudo -s
su jenkins
cd ~/jobs/pear-core
# run the unit tests however the build is doing
phpunit tests/ or pear run-tests -r
Post by Helgi Þormar Þorbjörnsson
Post by Daniel Convissor
I've done some more work on the pear-core unit tests.
tests/PEAR_Command_Pickle/pickle/test.phpt
The difference is the following element is missing from the actual
Tag the released code with "pear svntag package2.xml"
I'm guessing it may have to do with pear-core now being in git rather
than svn.
Beyond that, there are 37 other unit tests that run fine via
"phpunit -d error_reporting=22527 tests" on my local machine but are
http://test.pear.php.net:8080/job/PEAR/18/testReport/
Can someone with more knowledge of pear-core's workings please take a
look at these 38 tests?
I can try to look at that soon but if someone gets there before me, that's
fine! I'm heading to the US next week so I'm not 100% sure of how much time
I have in the next few days.
How do I run things on the Jenkins server? Could be hard to debug if I
can't get them to fail locally (seems you have that problem right now)
Is there a way for me to either go on the server to run the outputted .php
files by hand (and to edit them) or can I fetch them somehow from the
Jenkins interface?
Taking a quick peak at the results, the top 3 have an issue with the temp
dir, and actually a few others in between... maybe related to your recent
commit of sys get temp dir?
I have not had time to review that patch fully but maybe dirname(__FILE__)
or so was not only being used for tmp directory purposes but also to link
to package files and tgz - I am seeing a good few tests failing due to
invalid package files.
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_Command_Mirror_download_all_test_normal_channel_rest_phpt/
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_PackageFile_Generator_v2_toTgz2_test_extsrc_phpt/
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_PackageFile_Generator_v2_toTgz2_test_fail_phpt/
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_Dependency2_test_checkPackageDependency_PEAR_url_phpt/
http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_lib_jenkins_workspace_PEAR_tests_PEAR_Command_Package_package_test_bug11318_phpt/
This one is just odd... getNotes? Lacking a PEAR::isError somewhere in the test it self.
- Helgi
--
PEAR QA Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel O'Connor
2012-01-08 06:20:50 UTC
Permalink
***@clockwerx-desktop:~/pear-core$ php -v
PHP 5.3.6-13ubuntu3.3 with Suhosin-Patch (cli) (built: Dec 13 2011
18:37:10)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans


Running https://github.com/CloCkWeRX/pear-core/ locally gives me: Tests:
719, Assertions: 719, Failures: 28, Skipped: 17.

I'm sure there are a few differences, as I probably stuffed up mergnig and
what have you, or the three extra commits I've applied; but I wouldn't have
expected so many failures.

Going to look a bit further.

There were 28 failures:

1)
/home/clockwerx/pear-core/tests/PEAR_Command_Install/upgrade/test_bug16046.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


2)
/home/clockwerx/pear-core/tests/PEAR_Command_Install/upgrade/test_bug17986.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


3)
/home/clockwerx/pear-core/tests/PEAR_Command_Package/package/test_bug11318.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+Test Failure: "after"
+ in
/home/clockwerx/pear-core/tests/PEAR_Command_Package/package/test_bug11318.php
line 20
+Unthrown error:
+error package: "PEAR_PackageFile_v2"
+message: "Channel validator warning: field "date" - Release Date
"2007-06-14" is not today"
+Unexpected error:
+error package: "PEAR_PackageFile_v2"
+message: "File "./tests/database/DatabaseTest.php" in package.xml does not
exist"
+Unexpected error:
+PEAR_Error:
+message: "Cannot package, errors in package"
+Unexpected error:
+PEAR_Error:
+message: "Cannot package, errors in package"
+
+Fatal error: Call to undefined method PEAR_Error::getNotes() in
/home/clockwerx/pear-core/tests/PEAR_Command_Package/package/test_bug11318.php
on line 35


4) /home/clockwerx/pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt
--- Expected
+++ Actual
@@ @@
+Test Failure: "log"
+ in /home/clockwerx/pear-core/tests/PEAR_Command_Pickle/pickle/test.php
line 72
+
+NOTE: install Text_Diff, then re-run the tests.
+The error output will be much easier to read.
+
+Expecting:
+array (
+ 0 =>
+ array (
+ 0 => 0,
+ 1 => 'WARNING: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+ ),
+ 1 =>
+ array (
+ 0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+ 1 => true,
+ ),
+ 2 =>
+ array (
+ 0 => 'Attempting to process the second package file',
+ 1 => true,
+ ),
+ 3 =>
+ array (
+ 0 => 'Warning: Channel validator warning: field "date" - Release Date
"2005-01-01" is not today',
+ 1 => true,
+ ),
+ 4 =>
+ array (
+ 0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+ 1 => true,
+ ),
+ 5 =>
+ array (
+ 0 => 'Package pecl_http-0.16.0.tgz done',
+ 1 => true,
+ ),
+ 6 =>
+ array (
+ 0 => 'Tag the released code with "pear svntag package2.xml"',
+ 1 => true,
+ ),
+ 7 =>
+ array (
+ 0 => '(or set the SVN tag pecl_http-0.16.0 by hand)',
+ 1 => true,
+ ),
+)
+Received:
+array (
+ 0 =>
+ array (
+ 0 => 0,
+ 1 => 'WARNING: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+ ),
+ 1 =>
+ array (
+ 0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+ 1 => true,
+ ),
+ 2 =>
+ array (
+ 0 => 'Attempting to process the second package file',
+ 1 => true,
+ ),
+ 3 =>
+ array (
+ 0 => 'Warning: Channel validator warning: field "date" - Release Date
"2005-01-01" is not today',
+ 1 => true,
+ ),
+ 4 =>
+ array (
+ 0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+ 1 => true,
+ ),
+ 5 =>
+ array (
+ 0 => 'Package pecl_http-0.16.0.tgz done',
+ 1 => true,
+ ),
+)
tests done


5)
/home/clockwerx/pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt
--- Expected
+++ Actual
@@ @@
+Test Failure: "pear log"
+ in
/home/clockwerx/pear-core/tests/PEAR_Command_Remote/list-upgrades/test.php
line 221
+
+NOTE: install Text_Diff, then re-run the tests.
+The error output will be much easier to read.
+
+Expecting:
+array (
+ 0 =>
+ array (
+ 'info' =>
+ array (
+ 'caption' => 'pear.php.net Available Upgrades (stable):',
+ 'border' => 1,
+ 'headline' =>
+ array (
+ 0 => 'Channel',
+ 1 => 'Package',
+ 2 => 'Local',
+ 3 => 'Remote',
+ 4 => 'Size',
+ ),
+ 'channel' => 'pear.php.net',
+ 'data' =>
+ array (
+ 0 =>
+ array (
+ 0 => 'pear.php.net',
+ 1 => 'Archive_Zip',
+ 2 => '1.0.0 (stable)',
+ 3 => '2.0.5 (stable)',
+ 4 => '22907022kB',
+ ),
+ ),
+ ),
+ 'cmd' => 'list-upgrades',
+ ),
+)
+Received:
+array (
+ 0 =>
+ array (
+ 'info' =>
+ array (
+ 'caption' => 'pear.php.net Available Upgrades (stable):',
+ 'border' => 1,
+ 'headline' =>
+ array (
+ 0 => 'Channel',
+ 1 => 'Package',
+ 2 => 'Local',
+ 3 => 'Remote',
+ 4 => 'Size',
+ ),
+ 'channel' => 'pear.php.net',
+ 'data' =>
+ array (
+ 0 =>
+ array (
+ 0 => 'pear.php.net',
+ 1 => 'Archive_Zip',
+ 2 => '1.0.0 (stable)',
+ 3 => '2.0.5 (stable)',
+ 4 => '22907021kB',
+ ),
+ ),
+ ),
+ 'cmd' => 'list-upgrades',
+ ),
+)
tests done


6) /home/clockwerx/pear-core/tests/PEAR_Config/test_getFTP.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


7) /home/clockwerx/pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


8)
/home/clockwerx/pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+Test Failure: "no net_ftp"
+ in
/home/clockwerx/pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.php
line 19
+No errors caught, but errors were expected
+
+ ** ERROR: process timed out **


9)
/home/clockwerx/pear-core/tests/PEAR_Installer/test_install_simplelocalpackage_ftp.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


10)
/home/clockwerx/pear-core/tests/PEAR_Installer/test_uninstall_simplelocalpackage_ftp.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


11) /home/clockwerx/pear-core/tests/PEAR_Validate/bug17744.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


12) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validGroupName.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


13) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validPackageName.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


14) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validVersion.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


15) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_date.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


16)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_packagename.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


17)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_stability.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


18) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_state.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


19) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_time.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


20)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


21)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


22)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic_alpha.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


23)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic_beta.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


24)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic_stable.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


25)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


26)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


27)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


28) /home/clockwerx/pear-core/tests/System/test_which.phpt
--- Expected
+++ Actual
@@ @@
Testing: which
+System::which('ls') 1 failed
+string(7) "/bin/ls"
+bool(false)
end


FAILURES!
Tests: 719, Assertions: 719, Failures: 28, Skipped: 17.

Writing code coverage data to XML file, this may take a moment.PHP Notice:
Undefined offset: 80 in /usr/share/php/PHP/Token/Stream.php on line 534
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
PHP 4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
PHP 5. PHP_CodeCoverage_Report_Clover->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:352
PHP 6. PHP_CodeCoverage->getReport()
/usr/share/php/PHP/CodeCoverage/Report/Clover.php:85
PHP 7. PHP_CodeCoverage_Report_Factory->create()
/usr/share/php/PHP/CodeCoverage.php:141
PHP 8. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:76
PHP 9. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP 10. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP 11. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP 12. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP 13. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP 14. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP 15. PHP_CodeCoverage_Report_Node_Directory->addFile()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:92
PHP 16. PHP_CodeCoverage_Report_Node_File->__construct()
/usr/share/php/PHP/CodeCoverage/Report/Node/Directory.php:211
PHP 17. PHP_CodeCoverage_Util::getLinesToBeIgnored()
/usr/share/php/PHP/CodeCoverage/Report/Node/File.php:166
PHP 18. PHP_Token_Stream->getClasses()
/usr/share/php/PHP/CodeCoverage/Util.php:259
PHP 19. PHP_Token_Stream->parse() /usr/share/php/PHP/Token/Stream.php:249
PHP 20. PHP_Token_INTERFACE->getInterfaces()
/usr/share/php/PHP/Token/Stream.php:396
PHP 21. PHP_Token_INTERFACE->hasInterfaces()
/usr/share/php/PHP/Token.php:591
PHP 22. PHP_Token_Stream->offsetGet() /usr/share/php/PHP/Token/Stream.php:0

Notice: Undefined offset: 80 in /usr/share/php/PHP/Token/Stream.php on line
534

Call Stack:
0.0003 327668 1. {main}() /usr/bin/phpunit:0
0.0312 705908 2. PHPUnit_TextUI_Command::main()
/usr/bin/phpunit:46
0.0312 706396 3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
0.5128 4259804 4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
1499.3018 109997928 5. PHP_CodeCoverage_Report_Clover->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:352
1499.3020 109998984 6. PHP_CodeCoverage->getReport()
/usr/share/php/PHP/CodeCoverage/Report/Clover.php:85
1499.3130 110036040 7. PHP_CodeCoverage_Report_Factory->create()
/usr/share/php/PHP/CodeCoverage.php:141
1499.4361 112145648 8. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:76
1499.4362 112148704 9. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
1499.4363 112151524 10. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
1499.4364 112154344 11. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
1529.3060 328232244 12. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
1531.5252 340046856 13. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
1531.5253 340050332 14. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
1531.5253 340050656 15.
PHP_CodeCoverage_Report_Node_Directory->addFile()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:92
1531.5253 340052604 16. PHP_CodeCoverage_Report_Node_File->__construct()
/usr/share/php/PHP/CodeCoverage/Report/Node/Directory.php:211
1531.5253 340053000 17. PHP_CodeCoverage_Util::getLinesToBeIgnored()
/usr/share/php/PHP/CodeCoverage/Report/Node/File.php:166
1531.5288 340112716 18. PHP_Token_Stream->getClasses()
/usr/share/php/PHP/CodeCoverage/Util.php:259
1531.5289 340112716 19. PHP_Token_Stream->parse()
/usr/share/php/PHP/Token/Stream.php:249
1531.5307 340117564 20. PHP_Token_INTERFACE->getInterfaces()
/usr/share/php/PHP/Token/Stream.php:396
1531.5307 340117564 21. PHP_Token_INTERFACE->hasInterfaces()
/usr/share/php/PHP/Token.php:591
1531.5307 340117608 22. PHP_Token_Stream->offsetGet()
/usr/share/php/PHP/Token/Stream.php:0



Generating code coverage report, this may take a moment.PHP Warning:
file_get_contents(/tmp/pear-core-test/Tester.php): failed to open stream:
No such file or directory in
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php on line 475
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
PHP 4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
PHP 5. PHP_CodeCoverage_Report_HTML->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:373
PHP 6. PHP_CodeCoverage_Report_HTML_Renderer_File->render()
/usr/share/php/PHP/CodeCoverage/Report/HTML.php:180
PHP 7. PHP_CodeCoverage_Report_HTML_Renderer_File->renderSource()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:124
PHP 8. PHP_CodeCoverage_Report_HTML_Renderer_File->loadFile()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:348
PHP 9. file_get_contents()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:475

Warning: file_get_contents(/tmp/pear-core-test/Tester.php): failed to open
stream: No such file or directory in
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php on line 475

Call Stack:
0.0003 327668 1. {main}() /usr/bin/phpunit:0
0.0312 705908 2. PHPUnit_TextUI_Command::main()
/usr/bin/phpunit:46
0.0312 706396 3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
0.5128 4259804 4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
1542.6042 369584880 5. PHP_CodeCoverage_Report_HTML->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:373
1597.7463 370064672 6.
PHP_CodeCoverage_Report_HTML_Renderer_File->render()
/usr/share/php/PHP/CodeCoverage/Report/HTML.php:180
1597.7465 370068972 7.
PHP_CodeCoverage_Report_HTML_Renderer_File->renderSource()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:124
1597.7466 370069520 8.
PHP_CodeCoverage_Report_HTML_Renderer_File->loadFile()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:348
1597.7466 370069564 9. file_get_contents()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:475
Daniel Convissor
2012-01-08 19:40:00 UTC
Permalink
Post by Daniel O'Connor
719, Assertions: 719, Failures: 28, Skipped: 17.
I'm sure there are a few differences, as I probably stuffed up mergnig and
what have you, or the three extra commits I've applied; but I wouldn't have
expected so many failures.
Yeah. Back out your changes or set up a clean checkout/branch/whatever.
Run the tests on that as a base. I'm curious if they run fine for you
that way. Then bring your changes in gradually.

Thanks,

--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
Loading...