Re: CVS update: /cowiki/misc/development/tests/

PAUL HANCHETT <[email protected]> Mon, 09 May 2005 11:48:24 -0700
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
My include.path is not "correctly" set.  It won't normally be for a 
sandbox straight out of CVS...  If you use the original code and derive 
the base path, it should work just fine...  (Not offended that you made 
your change, just concerned that it depends on the installer, which is 
*wrong*.)

Archie Campbell wrote:

> Output?
> What can't be found?
> Did you alter php.ini to reflect location of PEAR files?
> Did I incorrectly rename anything?
>
> Archie
>
> PAUL HANCHETT wrote:
>
>> Archie--
>>
>> I'm having trouble running your tests.  I think this should be done 
>> so it is in dependent on Daniel's include.path file.  I'll look at it 
>> tomorrow and see if I can't make a contribution...
>>
>> Paul
>>
>> Archie Campbell wrote:
>>
>>> Ok. I've altered setup.php to mung the include_path paths so that 
>>> they work from misc/development/tests, which *is* where the tests 
>>> have been envisaged to run from.
>>>
>>> PHPUnit should be somewhere in your php.ini's include_path. That'll 
>>> be an absolute path and one that remains untouched by the core of 
>>> coWiki, which happily overwrites the ini setting as it doesn't need 
>>> the PEAR classes.
>>>
>>> For testing,
>>>
>>>  #cd /cowiki/misc/development/tests
>>>  #php RunTests.php
>>>
>>> ought to work.
>>>
>>> Regards,
>>>
>>> Archie
>>>
>>> Daniel T. Gorski wrote:
>>>
>>>>On 07 May 17:10, [email protected] wrote:
>>>>
>>>>  
>>>>
>>>>>    //--------------------------------------------------------
>>>>>    //  This line has to be set because the test code is 
>>>>>    //  not presently in the coWiki directory structure.
>>>>>    //--------------------------------------------------------
>>>>>    $base_path = "/code/src/cowiki/cowiki/includes/cowiki/";
>>>>>    
>>>>>
>>>>
>>>>htdocs/include.path contains the include paths (htdocs/index.php and
>>>>htdocs/admin.php read the paths from that file too). The line above should
>>>>load dynamic values. Also should be the location of PHPUnit dynamic and/or
>>>>changeable without touching the code of the tests themselves.
>>>>
>>>>regards dtg
>>>>      
>>>>