[dev] Problem executing Kronolith tests

Gonçalo Queirós goncalo.queiros at portugalmail.net
Mon Apr 16 14:46:36 UTC 2012


Ping? :-)

    Citando Gonçalo Queirós <goncalo.queiros at portugalmail.net>:
> On 03/29/2012 03:15 PM, Jan Schneider wrote:  > Zitat von Gonçalo  
> Queirós <goncalo.queiros at portugalmail.net>:
>>> Hi there, i had problems (confirmed by Jan) running single Kronolith tests.
>>>
>>>     I use the -d switch to change php include path, like: phpunit -d
>>>     include_path=<PATH_TO_HORDE_LIBS>
>>>     kronolith/test/Kronolith/Integration/AllDayTest.php
>>>
>>>     But i kept getting this error:
>>>
>>>     Class Kronolith_Integration_Driver_Sql_Base could not be found in...
>>>
>>>     I debugged it and found out that because AllDayTest.php includes the
>>>     Autoload.php file it requires some extra test files, and then  
>>> phpunit tries
>>>     to find the suitClassName but can't.
>>>     I don't understand enough of phpunit to think its a bug on their code,
>>>     but this  
>>> (https://github.com/sebastianbergmann/phpunit/issues/529) might be
>>>     a similar issue..
>>>
>>>     I then tried to change the Horde test framework to fix this  
>>> problem, and
>>>     came up with the attached patch (only changes Kronolith, but  
>>> for the other
>>>     apps its probably the same).
>>>
>>>     Currently i get errors running Kronolith AllTests.php and
>>>     Sql/Pdo/SqliteTest.php, but those errors have nothing to do with the
>>>     problem described here since i had them before, and they are  
>>> not fixed by
>>>     this patch either (that is another fight).
>>>
>>>     What do you think?
>>    From a quick glance this looks good. But I would give the final  
>> word to Gunnar.
>>
>>    Jan.
>   Gunnar, any opinion? :-)
>
>   Thanks
>   Gonçalo Queirós
>   --
>   dev mailing list
>   Frequently Asked Questions: http://wiki.horde.org/FAQTo  
> unsubscribe, mail: dev-unsubscribe at lists.horde.org


More information about the dev mailing list