sebastianbergmann/php-code-coverage — Issue #71: Fatal Error when generating HTML report on RC6
Author: mimmi20
Created: 2011-10-11 18:17:01+00:00
State: open

The following fatal error occured while using phpunit/php_codecoverage with jenkins.

[exec] OK (149 tests, 179 assertions)
[exec]
[exec] Writing code coverage data to XML file, this may take a moment.﻿﻿
[exec]
[exec] Generating textual code coverage report, this may take a moment.
[exec] Warning: require(/usr/share/php/PHP/CodeCoverage/Report/Text.php): failed to open stream: Datei oder Verzeichnis nicht gefunden in /usr/share/php/PHP/CodeCoverage/Autoload.php on line 93
[exec]
[exec] Call Stack:
[exec] 0,0027 324128 1. {main}() /usr/bin/phpunit:0
[exec] 0,1333 744456 2. PHPUnit_TextUI_Command::main(???) /usr/bin/phpunit:46
[exec] 0,1333 744940 3. PHPUnit_TextUI_Command->run(???, ???) /usr/share/php/PHPUnit/TextUI/Command.php:125
[exec] 0,8758 7502736 4. PHPUnit_TextUI_TestRunner->doRun(???, ???) /usr/share/php/PHPUnit/TextUI/Command.php:187
[exec] 887,3866 164696188 5. php_codecoverage_autoload(???) /usr/share/php/PHPUnit/TextUI/Command.php:0
[exec]
[exec]
[exec] Variables in local scope (#5):
[exec] $class = 'PHP_CodeCoverage_Report_Text'
[exec] $classes = array ('php_codecoverage' => '/CodeCoverage.php', 'php_codecoverage_driver' => '/CodeCoverage/Driver.php', 'php_codecoverage_driver_xdebug' => '/CodeCoverage/Driver/Xdebug.php', 'php_codecoverage_exception' => '/CodeCoverage/Exception.php', 'php_codecoverage_filter' => '/CodeCoverage/Filter.php', 'php_codecoverage_report_clover' => '/CodeCoverage/Report/Clover.php', 'php_codecoverage_report_factory' => '/CodeCoverage/Report/Factory.php', 'php_codecoverage_report_html' => '/CodeCoverage/Report/HTML.php', 'php_codecoverage_report_html_renderer' => '/CodeCoverage/Report/HTML/Renderer.php', 'php_codecoverage_report_html_renderer_dashboard' => '/CodeCoverage/Report/HTML/Renderer/Dashboard.php', 'php_codecoverage_report_html_renderer_directory' => '/CodeCoverage/Report/HTML/Renderer/Directory.php', 'php_codecoverage_report_html_renderer_file' => '/CodeCoverage/Report/HTML/Renderer/File.php', 'php_codecoverage_report_node' => '/CodeCoverage/Report/Node.php', 'php_codecoverage_report_node_directory' => '/CodeCoverage/Report/Node/Directory.php', 'php_codecoverage_report_node_file' => '/CodeCoverage/Report/Node/File.php', 'php_codecoverage_report_node_iterator' => '/CodeCoverage/Report/Node/Iterator.php', 'php_codecoverage_report_php' => '/CodeCoverage/Report/PHP.php', 'php_codecoverage_report_text' => '/CodeCoverage/Report/Text.php', 'php_codecoverage_util' => '/CodeCoverage/Util.php')
[exec] $cn = 'php_codecoverage_report_text'
[exec] $file = *uninitialized*
[exec] $path = '/usr/share/php/PHP'
[exec] $result = *uninitialized*
[exec]
[exec]
[exec] Fatal error: require(): Failed opening required '/usr/share/php/PHP/CodeCoverage/Report/Text.php' (include_path='/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspace/library/:/var/lib/jenkins/jobs/creditcalc/workspa in /usr/share/php/PHP/CodeCoverage/Autoload.php on line 93
[exec]
[exec] Call Stack:
[exec] 0,0027 324128 1. {main}() /usr/bin/phpunit:0
[exec] 0,1333 744456 2. PHPUnit_TextUI_Command::main(???) /usr/bin/phpunit:46
[exec] 0,1333 744940 3. PHPUnit_TextUI_Command->run(???, ???) /usr/share/php/PHPUnit/TextUI/Command.php:125
[exec] 0,8758 7502736 4. PHPUnit_TextUI_TestRunner->doRun(???, ???) /usr/share/php/PHPUnit/TextUI/Command.php:187
[exec] 887,3866 164696188 5. php_codecoverage_autoload(???) /usr/share/php/PHPUnit/TextUI/Command.php:0
[exec]
[exec]
[exec] Variables in local scope (#5):
[exec] $class = 'PHP_CodeCoverage_Report_Text'
[exec] $classes = array ('php_codecoverage' => '/CodeCoverage.php', 'php_codecoverage_driver' => '/CodeCoverage/Driver.php', 'php_codecoverage_driver_xdebug' => '/CodeCoverage/Driver/Xdebug.php', 'php_codecoverage_exception' => '/CodeCoverage/Exception.php', 'php_codecoverage_filter' => '/CodeCoverage/Filter.php', 'php_codecoverage_report_clover' => '/CodeCoverage/Report/Clover.php', 'php_codecoverage_report_factory' => '/CodeCoverage/Report/Factory.php', 'php_codecoverage_report_html' => '/CodeCoverage/Report/HTML.php', 'php_codecoverage_report_html_renderer' => '/CodeCoverage/Report/HTML/Renderer.php', 'php_codecoverage_report_html_renderer_dashboard' => '/CodeCoverage/Report/HTML/Renderer/Dashboard.php', 'php_codecoverage_report_html_renderer_directory' => '/CodeCoverage/Report/HTML/Renderer/Directory.php', 'php_codecoverage_report_html_renderer_file' => '/CodeCoverage/Report/HTML/Renderer/File.php', 'php_codecoverage_report_node' => '/CodeCoverage/Report/Node.php', 'php_codecoverage_report_node_directory' => '/CodeCoverage/Report/Node/Directory.php', 'php_codecoverage_report_node_file' => '/CodeCoverage/Report/Node/File.php', 'php_codecoverage_report_node_iterator' => '/CodeCoverage/Report/Node/Iterator.php', 'php_codecoverage_report_php' => '/CodeCoverage/Report/PHP.php', 'php_codecoverage_report_text' => '/CodeCoverage/Report/Text.php', 'php_codecoverage_util' => '/CodeCoverage/Util.php')
[exec] $cn = 'php_codecoverage_report_text'
[exec] $file = *uninitialized*
[exec] $path = '/usr/share/php/PHP'
[exec] $result = *uninitialized*

I am using

phpunit/PHPUnit 3.6.0RC4
phpunit/PHP_CodeCoverage 1.1.0RC6
phpunit/DbUnit 1.1.0RC2
phpunit/File_Iterator 1.3.0RC1
phpunit/PHP_TokenStream 1.1.0RC2

The jenkins config for the codecoverage task is