Skip to content

Failing to run unit tests #8

@miogalang

Description

@miogalang

I tried using ansible to make this work. Had a few edits but I finally got it running. I now run into this error as it tries to build the sample project.

Any Ideas?

phpunit:
    [exec] PHP Warning:  require_once(PHPUnit/Runner/Version.php): failed to open stream: No such file or directory in /var/www/yii-1.1.14.f0fee9/framework/test/CTestCase.php on line 11
    [exec] PHP Stack trace:
    [exec] PHP   1. {main}() /usr/bin/phpunit:0
    [exec] PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:583
    [exec] PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:132
    [exec] PHP   4. PHPUnit_Runner_BaseTestRunner->getTest() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:153
    [exec] PHP   5. PHPUnit_Framework_TestSuite->addTestFiles() phar:///usr/bin/phpunit/phpunit/Runner/BaseTestRunner.php:97
    [exec] PHP   6. PHPUnit_Framework_TestSuite->addTestFile() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:411
    [exec] PHP   7. PHPUnit_Util_Fileloader::checkAndLoad() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:358
    [exec] PHP   8. PHPUnit_Util_Fileloader::load() phar:///usr/bin/phpunit/phpunit/Util/Fileloader.php:77
    [exec] PHP   9. include_once() phar:///usr/bin/phpunit/phpunit/Util/Fileloader.php:93
    [exec] PHP  10. YiiBase::autoload() /var/www/yii-1.1.14.f0fee9/framework/YiiBase.php:0
    [exec] PHP  11. include() /var/www/yii-1.1.14.f0fee9/framework/YiiBase.php:401
    [exec] PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Runner/Version.php' (include_path='.:/var/lib/jenkins/jobs/yii-sample-project/workspace/src/protected/components:/var/lib/jenkins/jobs/yii-sample-project/workspace/src/protected/models:/usr/share/php:/usr/share/pear') in /var/www/yii-1.1.14.f0fee9/framework/test/CTestCase.php on line 11
    [exec] PHP Stack trace:
    [exec] PHP   1. {main}() /usr/bin/phpunit:0
    [exec] PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:583
    [exec] PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:132
    [exec] PHP   4. PHPUnit_Runner_BaseTestRunner->getTest() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:153
    [exec] PHP   5. PHPUnit_Framework_TestSuite->addTestFiles() phar:///usr/bin/phpunit/phpunit/Runner/BaseTestRunner.php:97
    [exec] PHP   6. PHPUnit_Framework_TestSuite->addTestFile() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:411
    [exec] PHP   7. PHPUnit_Util_Fileloader::checkAndLoad() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:358
    [exec] PHP   8. PHPUnit_Util_Fileloader::load() phar:///usr/bin/phpunit/phpunit/Util/Fileloader.php:77
    [exec] PHP   9. include_once() phar:///usr/bin/phpunit/phpunit/Util/Fileloader.php:93
    [exec] PHP  10. YiiBase::autoload() /var/www/yii-1.1.14.f0fee9/framework/YiiBase.php:0
    [exec] PHP  11. include() /var/www/yii-1.1.14.f0fee9/framework/YiiBase.php:401

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions