PHPUnit - jenkins

General development questions

PHPUnit - jenkins

Postby rafael.silva » Wed Oct 10, 2012 10:12 pm

Hello, my name is Rafael

My interest is in testing the Tine20 brach 2012-03-1 - using phpunit

I have configured a server with LDAP, Cyrus, Postfix and Tine20. It is working and functional.

I configured the phpunitconfig.inc.php and run the:
./tests/tine20/AllTests.php

It does not work, phpunit aborts with an error (error in the end of message).

Rafael

The error is as follows:
Code: Select all
PHP Fatal error:  Call to a member function deleteLeads() on a non-object in /var/lib/jenkins/jobs/Expresso V3/workspace/tests/tine20/Crm/Export/AbstractTest.php on line 61
PHP Stack trace:
...
PHP  13. Crm_Export_AbstractTest->tearDown() /usr/share/php/PHPUnit/Framework/TestCase.php:746
User avatar
rafael.silva
 
Posts: 3
Joined: Mon Oct 17, 2011 1:25 pm

Re: PHPUnit - jenkins

Postby ph_il » Thu Oct 11, 2012 12:32 pm

hi rafael,

could you please post the complete stack trace?
i cannot see anything wrong in this line as the $this->_json variable should contain a Crm_Frontend_Json object.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: PHPUnit - jenkins

Postby rafael.silva » Thu Oct 11, 2012 1:09 pm

Hi ph_il,
here is the complete stack strace:

Code: Select all
PHP Fatal error:  Call to a member function deleteLeads() on a non-object in /var/lib/jenkins/jobs/Expresso V3/workspace/tests/tine20/Crm/Export/AbstractTest.php on line 61
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:52
PHP   3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:147
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/share/php/PHPUnit/TextUI/Command.php:214
PHP   5. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:350
PHP   6. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:695
PHP   7. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:695
PHP   8. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:695
PHP   9. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:752
PHP  10. PHPUnit_Framework_TestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:782
PHP  11. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:653
PHP  12. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:687
PHP  13. Crm_Export_AbstractTest->tearDown() /usr/share/php/PHPUnit/Framework/TestCase.php:746
User avatar
rafael.silva
 
Posts: 3
Joined: Mon Oct 17, 2011 1:25 pm

Re: PHPUnit - jenkins

Postby rafael.silva » Thu Oct 11, 2012 10:11 pm

Hi ph_li

I have seen the page:
http://ci.tine20.org/job/tine20-2012-03/525/console

It executes an comand:
Code: Select all
[tine20-2012-03] $ ant -file build.xml


But I could not find the build.xml for the ant aplication in the git repository.
I found only a ./tine20/build.xml, but this is for the phing.

Could you send me the ant - build.xml?

Regards,
Rafael Silva
User avatar
rafael.silva
 
Posts: 3
Joined: Mon Oct 17, 2011 1:25 pm

Re: PHPUnit - jenkins

Postby ph_il » Thu Oct 18, 2012 11:48 am

hi rafael,

i just sent you the file by email.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am


Return to General

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »